Split In Batches node currentRunIndex example — n8n Workflow
Overzicht
This workflow demonstrates how to use currentRunIndex to get the running index.
Function node: This node generates mock data for the workflow. Replace it with the node whose data you want to split into batches.
SplitInBatches node: This node splits the data with the batch size equal to 1. Based on your use-case, set the value of the Batch Size.
IF node: This node checks the running index. If the running index equals 5 the node returns true and breaks the loop. The node uses the expression {
Gebruikte knooppunten
Workflow-voorvertoning
Hoe het werkt
- 1
Trigger
De workflow start met een trigger-trigger.
- 2
Verwerking
Gegevens stromen door 5 knooppunten, connecting function, if, manualtrigger.
- 3
Uitvoer
De workflow voltooit zijn automatisering en levert het resultaat aan de geconfigureerde bestemming.
Knooppuntdetails (5)
On clicking 'execute'
manualTrigger
Function
function
SplitInBatches
splitInBatches
IF
if
Set
set
Hoe deze workflow te importeren
- 1Klik op de knop JSON downloaden rechts om het workflowbestand op te slaan.
- 2Open uw n8n-instantie. Ga naar Workflows → Nieuw → Importeren uit bestand.
- 3Selecteer het gedownloade bestand
split-in-batches-node-currentrunindex-exampleen klik op Importeren. - 4Stel inloggegevens in voor elk serviceknooppunt (API-sleutels, OAuth, enz.).
- 5Klik op Workflow testen om te controleren of alles werkt, activeer het vervolgens.
Of plak rechtstreeks in n8n → Importeren uit JSON:
Integraties
Gemaakt door
Harshil Agrawal
@harshil1712
Tags
Nieuw bij n8n?
n8n is een gratis open-source workflow-automatiseringstool. Host het zelf of gebruik de cloudversie.
n8n gratis ophalen →