Action References
LoopAction
LoopAction
Purpose Iterate over an array computed by MScript; for each item, execute a list of action IDs.
When to use it
- To process N related items (e.g., create N child records, validate each row)
Key fields
| Field | Type | Description |
|---|---|---|
loopFor | MScript | Evaluates to an array. |
loopItemName | String | Variable name bound to current item (e.g., item). |
actions | [String] | Action IDs executed per item. |
isParallel | Boolean | Run item steps concurrently or sequentially. |
Example
{
"id": "a330-loop-tasks",
"name": "closeEachOpenTask",
"loopFor": "this.openTasks",
"loopItemName": "taskItem",
"isParallel": false,
"actions": ["a120-update-tasks"] // references another action by ID
}
Notes
- Nested
ParallelAction/LoopActionis supported. - Be mindful of resource contention (DB limits, external rate limits).
- Combine with
onActionError: completeApifor non-critical branches.
Was this page helpful?
Built with Documentation.AI
Last updated Jan 3, 2026