n8n $item(index) Demo: Reference Single Data in Multi-Item Flows
Demonstrates using $item(index) to access data from a single-item node (e.g., API key) across multiple items (e.g., customer data) in batch HTTP requests.
This workflow illustrates a key n8n technique: the $item(index) method. It starts with a Manual Trigger, followed by a Set node that defines a single API key. The Customer Datastore node retrieves 5 customer records, creating multiple execution items. The HTTP Request node then sends POST requests for each customer, referencing the API key from the Set node using {{ $item(0).$node["Set"].json["apiKey"] }}. This avoids redundant data duplication and ensures the single API key is applied consistently across all 5 requests to a dummy webhook URL.
Benefits include efficient data referencing in multi-item workflows, reducing node complexity and errors. It's perfect for scenarios where shared configuration (like auth tokens) must be used in loops, saving time on repetitive setups.
Use cases span CRM sales (batch customer updates), API integrations (bulk sends with shared credentials), and dev tools (testing batch operations). Replace nodes with real data sources like Google Sheets or Airtable for production, making it versatile for sales proposals or lead enrichment.
New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.
Secure checkout powered by Stripe
Tags
Support
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related CRM - Sales workflows
- Automate Lead Generation from Google Maps with AI-Enhanced Outreach$19.99
- Automate Facebook Lead Ads to Google Sheets IntegrationFree
- Automate Lead Scraping and Data Cleaning from Apify to Google Sheets$4.99
- AI-Powered Cold Call Machine with LinkedIn, OpenAI & Sales Navigator$24.99
- Automated Website Data Scraper for CRM Insights$24.99
- Automate LinkedIn Lead Generation and Enrichment$24.99
More from Omar Karlsson
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.