Loop
Loop blocks repeat their nested blocks over a list of items. Add one from the block menu (Loop), then add blocks inside it to run once per item.
Foreach
By default a loop is a Foreach loop over an array:
| Field | Description |
|---|---|
| Array | The array to iterate over. Pick an array source in scope — a Find all Record block, an array Variable, an array on-demand input parameter, or a webhook response. |
| Item alias | The name for the current item on each iteration (camelCase, for example currentItem). Reference fields as {{currentItem.field}}. |
Example
Loop: Foreach user in fetchedUsers
Action: Send Email → To: {{user.email}}
Related
- Records — Fetch a list to iterate over
- Conditions — Branch inside a loop
- Blocks overview — All block types