Reference
Article MarkdownReport an error

Action loop_start

System ID: action_loop_start
Also in code: action_loop__start (same handler).

Description

Starts iteration over an array of objects. The array can be passed directly in JSON or taken from a constant (constant). The current item is written to loop_data; loop_array and loop_max are also created. Then in the scenario process the item and finish the iteration via loop_end.

Events (scenario branches)

Event When it occurs
success Loop started, loop_data has the first / next item
error No parameters, array invalid or empty

Parameters

Parameter Type Required Default Description
(direct array) array no [] Array of objects to iterate (if the config is an array)
constant string no Name of the constant with the array (if the config is an object)

Configuration example

{
  "constant": "photos"
}

Or directly:

[
  { "name": "Item 1", "value": 1 },
  { "name": "Item 2", "value": 2 }
]
Using your own AI agent?Install the open skill so your AI agent can work with current official ConnectiveOne documentation.Get the skillNeed support?Couldn’t find the answer or need help from the ConnectiveOne team? Create a request in Client Portal.Create a request