Documentation
Dataflows
Guides
Perform loop processing

Perform loop processing

Perform loop processing from an array/Map

  1. from [Select Action], select [Function > Loop].
  2. select Loop from Array/Map from [Loop Type] on the right side of the Action Panel.
  3. Enter an array or object value in [Values to loop]. (You can also refer to it by {{ }}.)
  4. Enter an arbitrary maximum number of loops. If not specified, it will loop as many times as the number of arrays/maps.
  5. Select the action you want to loop.
  6. implement the action.
  7. Select the loop action and test it from [Test Loop].
  8. Confirm that the return value of the action executed in the loop is returned in array format.

Execute the loop process by specifying a number

  1. select [Function > Loop] from [Select Action].
  2. select Loop by number from [Loop Type] on the right side of the Action Panel.
  3. Enter values for [Start], [End], and [Increment amount]. (You can also refer to them by {{ }}.)
  4. enter an optional maximum number of loops. If not specified, it will loop from [start] to [end].
  5. Select the action you wish to loop.
  6. implement the action.
  7. Select the loop action and test it from [Test Loop].
  8. Confirm that the return value of the action executed in the loop is returned in array format.

Referencing a value

Referencing a value in a loop

Values that can be referenced when “loop with numbers” is specified

  • index: {{ loop1.index }}
  • value: {{ loop1.value }}
  • The loop1 part should be changed to an arbitrary loop name.

Values that can be referenced when “Loop from Array/Map” is specified

  • index: {{ loop1.index }}
  • key: {{ loop1.key }}
  • value: {{ loop1.value }}
  • The loop1 part should be changed to an arbitrary loop name.

Referring to the result of loop processing

After loop processing is finished, the result can be referenced as an array of values returned inside the loop process in the following way.

{{ loop1.data }}

The number of times the loop process is repeated can also be referenced as follows.

{{ loop1.loopCount }}

  • The loop1 part can be changed to any loop name.