Menu
For Each
Iterate over an array and execute workflow steps for each item.
Use it in a workflow
- Add a step and choose the For Loop connector.
- Pick the For Each action (under workflow).
- Fill in the fields below, then reference the result from later steps as
{{forEach.response.data}}.
Fields
Examples
Iterate over order line items
Loop over each line item in the order, exposing it as {{item}} (and its position as {{index}}) to the nested steps
{
"arraySource": "{{trigger.body.lineItems}}",
"itemVariable": "item",
"indexVariable": "index"
}
Need more? See the For Loop guide for connection setup and behaviour shared by every action.
Was this page helpful?