Flow control
control.loopLoop
Run a connected body once for every item in an array.
When to use it
Use it to process query rows, API results, files, or extracted items one at a time.
Configuration
| Field | Type | What it controls |
|---|---|---|
| Items* | array | An array, usually supplied by an upstream reference. |
* Required
Output
Inside the loop use {{<loop-id>.item}} and {{<loop-id>.index}}. The done handle runs after all items finish.
Example
Loop over {{query.rows}}, send one message per row, then follow done to post a summary.
Good to know
- A loop accepts at most 1,000 items.
- Every body node consumes a workflow step for each iteration; a run has a 10,000-step ceiling.
