Workflow: Manual Splitinbatches Automate

Workflow Details

Download Workflow
{
    "nodes": [
        {
            "name": "On clicking 'execute'",
            "type": "n8n-nodes-base.manualTrigger",
            "position": [
                430,
                310
            ],
            "parameters": [],
            "typeVersion": 1
        },
        {
            "name": "Function",
            "type": "n8n-nodes-base.function",
            "position": [
                630,
                310
            ],
            "parameters": {
                "functionCode": "const newItems = [];\n\nfor (let i=0;i<10;i++) {\n  newItems.push({json:{i}});\n}\n\nreturn newItems;"
            },
            "typeVersion": 1
        },
        {
            "name": "SplitInBatches",
            "type": "n8n-nodes-base.splitInBatches",
            "position": [
                830,
                310
            ],
            "parameters": {
                "options": [],
                "batchSize": 1
            },
            "typeVersion": 1
        },
        {
            "name": "IF",
            "type": "n8n-nodes-base.if",
            "position": [
                1030,
                460
            ],
            "parameters": {
                "conditions": {
                    "number": [
                        {
                            "value1": "={{$node[\"SplitInBatches\"].context[\"currentRunIndex\"];}}",
                            "value2": 5,
                            "operation": "equal"
                        }
                    ],
                    "boolean": []
                }
            },
            "typeVersion": 1
        },
        {
            "name": "Set",
            "type": "n8n-nodes-base.set",
            "position": [
                1230,
                360
            ],
            "parameters": {
                "values": {
                    "string": [
                        {
                            "name": "Message",
                            "value": "Loop Ended"
                        }
                    ]
                },
                "options": [],
                "keepOnlySet": true
            },
            "typeVersion": 1
        }
    ],
    "connections": {
        "IF": {
            "main": [
                [
                    {
                        "node": "Set",
                        "type": "main",
                        "index": 0
                    }
                ],
                [
                    {
                        "node": "SplitInBatches",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "Function": {
            "main": [
                [
                    {
                        "node": "SplitInBatches",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "SplitInBatches": {
            "main": [
                [
                    {
                        "node": "IF",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "On clicking 'execute'": {
            "main": [
                [
                    {
                        "node": "Function",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        }
    }
}
Back to Workflows

Related Workflows

Contact Form Text Classifier for eCommerce
View
SQL agent with memory
View
Twilio Stickynote Send Triggered
View
Schedule Filter Update Scheduled
View
Convert Parquet, Avro, ORC & Feather via ParquetReader to JSON
View
Add subscriber to form, create tag and subscriber to the tag
View
Dynamically create tables in Airtable for your Webflow form submissions
View
🔥📈🤖 AI Agent for n8n Creators Leaderboard - Find Popular Workflows
View
Graphql Discord Automate Scheduled
View
Manual Send Triggered
View