Docs / Transformers / For Each

For Each

Iterate over an array, executing downstream nodes once per item.

Ports

Inlet
Input (any)
Outlets
Loop (any) — fires once per item
Done (any) — fires when iteration completes

Configuration

Parameter Type Default Description
arrayKey (“Loop Over”) variable picker The upstream list to iterate over — pick it from the dropdown of available variables (e.g. files from an Unzip Contents outlet).
itemKey (“Each Item As”) text "item" The name each element is exposed under during the loop — reference it downstream as {{item}}.
onError dropdown stop Behavior when a downstream node errors. stop halts the loop; continue skips to the next item.

Output Payload

Each iteration emits through the Loop outlet with these keys added to the payload:

item The current array element (or the key name configured via itemKey).
_forEach_index Zero-based index of the current iteration.
_forEach_count Total number of items in the array.

Example