Demonstrates the use of the $item(index) method — n8n Workflow
Overview
This workflow demonstrates the use of the $item(index) method. This method is useful when you want to reference an item at a particular index.
This example workflow makes POST HTTP requests to a dummy URL.
Set node: This node is used to set the API key that will be used in the workflow later. This node returns a single item. This node can be replaced with other nodes, based on the use case.
Customer Datastore node: This node returns the data of customers that will be sent in the body of the
Nodes used
Workflow Preview
How it Works
- 1
Trigger
The workflow starts with a trigger trigger.
- 2
Process
Data flows through 4 nodes, connecting httprequest, manualtrigger, n8ntrainingcustomerdatastore.
- 3
Output
The workflow completes its automation and delivers the result to the configured destination.
Node Details (4)
HTTP Request
httpRequest
Customer Datastore (n8n training)
n8nTrainingCustomerDatastore
How to Import This Workflow
- 1Click Download JSON button on the right to save the workflow file.
- 2Open your n8n instance. Go to Workflows → New → Import from file.
- 3Select the downloaded
demonstrates-the-use-of-the-itemindex-methodfile and click Import. - 4Set up credentials for each service node (API keys, OAuth, etc.).
- 5Click Test Workflow to verify everything works, then activate it.
Or paste directly in n8n → Import from JSON:
Integrations
Created by
Harshil Agrawal
@harshil1712
Tags
New to n8n?
n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.
Get n8n Free →