["a", "b", "c"]
):
@{item}
: The current item in the list (for example, "a"
, "b"
, or "c"
)@{itemId}
: The current item’s index in the list, starting at 0 (for example, 0
, 1
, or 2
){"a": "apple", "b": "banana", "c": "cherry"}
):
@{item}
: The current item’s value in the dictionary (for example, "apple"
, "banana"
, or "cherry"
)@{itemId}
: The current item’s key in the dictionary (for example, “a”, “b”, or “c”)@{payload}
or @{state_element}
to access the list in the Items
field.Items
field and executes the blocks that follow for each item. To reference the current item in the loop, you can use the environment variable @{item}
. To reference the current item’s index in the list, you can use the environment variable @{itemId}
.
The HTTP request in this example uses the @{item}
environment variable to reference the current file ID in the HTTP request’s URL
field.
Name | Type | Control | Default | Description | Options | Validation |
---|---|---|---|---|---|---|
Items | Object | Textarea | [] | The item value will be passed in the execution environment and will be available at @, its id at @. You can use either a list or a dictionary. | - | - |
Prefix | Text | - | - | If set, the item will be available at @ and the item id at @. | - | - |
Name | Field | Type | Description |
---|---|---|---|
Loop | - | dynamic | Connect the branch that you’d like to loop on. The branch plugged in here will be executed once per item. |
Success | - | success | The branch referenced executed successfully for each item. |
Error | - | error | The branch referenced has failed for at least one of the items. |
dynamic
end state means that the exact values of this end state change based on how you define the block.