AcademyWorkflowsDevelopment

Split In Batches loop index example

Developers and automation builders who need to repeat a step a fixed number of times inside an n8n workflow.

  • Recommendedour rating
  • 2,768views on n8n
Open on n8n.io ↗

Paste it straight onto an n8n canvas with Ctrl+V or Cmd+V.

split-in-batches-node-currentrunindex-example.json

Loading the file...

What it does

An n8n example that shows how to read the running index of a Split In Batches loop with currentRunIndex. A Function node generates sample data, the batch size is set to one, and an IF node ends the loop when the index reaches a value you choose. A Set node then shows an end-of-loop message.

Use cases

  1. 01Count the iterations of a loop in an n8n workflow
  2. 02Stop a batch process after a chosen number of runs
  3. 03Learn how to branch a workflow on the loop index

Questions about
Split In Batches loop index example.

What is Split In Batches loop index example used for?

Developers and automation builders who need to repeat a step a fixed number of times inside an n8n workflow. An n8n example that shows how to read the running index of a Split In Batches loop with currentRunIndex. A Function node generates sample data, the batch size is set to one, and an IF node ends the loop when the index reaches a value you choose. A Set node then shows an end-of-loop message.

How do I import Split In Batches loop index example into n8n?

Copy the workflow JSON from this page and paste it onto the n8n canvas with Ctrl+V or Cmd+V. Then connect your credentials in each node.

Is Split In Batches loop index example safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.