For Each
Use this Node to run a set of Steps once for each item in a collection.
This is useful when the same processing Steps must run for each item returned by an earlier Node.
Revision History
0.0.0.8 - Current release.
Setup Notes
You can add this Node to a Workflow without authentication or external setup.
Methods
The For Each Node exposes one method.
ForEach
Iterates over the incoming collection and runs the loop body once for each item.
Provide the collection to iterate over in Items.
| Parameter | Type | Description |
|---|---|---|
Items |
Array | The collection of items to iterate over. Each iteration processes one item from this collection. |
| Return | Type | Description |
|---|---|---|
Result |
Array | The current item for the active iteration. |
Usage Notes
- This Node contains the list of Steps that should run for each iteration. Inside those Steps, make references from the For Each Node's
Itemsinput, so that each Step uses the current item in the collection. - Design the Steps inside the loop, so they work with a single current item rather than the full collection.
- If the incoming collection is empty, there are no items to iterate over.
- The exact shape of
Resultdepends on the collection supplied toItems.