Action ReferencesLoopAction
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

FieldTypeDescription
loopForMScriptEvaluates to an array.
loopItemNameStringVariable name bound to current item (e.g., item).
actions[String]Action IDs executed per item.
isParallelBooleanRun 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/LoopAction is supported.
  • Be mindful of resource contention (DB limits, external rate limits).
  • Combine with onActionError: completeApi for non-critical branches.
Was this page helpful?
Built with Documentation.AI

Last updated Jan 3, 2026