Reference
Article MarkdownReport an error

Action loop__start

System ID: action_loop__start
Also in the scenario: loop__start
Alias of the same logic: loop_start (action_loop_start).

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, loop_max, and loop_iterator 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