Create a list
Choose the source that matches how the collection is produced:
On repeatable list inputs, add and reorder individual items or switch to
providing an entire List at once. Individual inputs are best for a fixed set;
the whole-list input is best for runtime collections.
Inspect and reshape lists
List actions transform a collection without requiring a sub-workflow:- Get Items by Index exposes selected
positions as separate outputs. Index
0is the first item, and-1is the last. - Slice returns a contiguous section.
- Chunk splits a list into smaller lists.
- Flatten removes nested list levels.
- Unique removes repeated values.
- Sort reorders the items.
- Length returns the item count.
Process every item
Loop Workflow runs a callable workflow once for each item in Payloads.1
Build the item workflow
Give the child workflow the Sub-Workflow
trigger. Read the current item with
Data from Trigger.
2
Return one result
Connect the transformed value to Return
Data.
3
Configure the loop
In the parent workflow, select the child in Loop Workflow and connect
the source list to Payloads.
4
Use the results
Results contains one child result for each input item, in the same
order.
A child that finishes without Return Data contributes
null at its
position. If a child run fails, the loop action fails instead of returning a
partial results list.Filter with a predicate workflow
Filter With Workflow runs a callable workflow for each item and keeps the original items whose returned value is truthy. The predicate workflow should:- Read the item from Data In.
- Compare or validate it.
- Return the decision through Return Data.
Find the first match
Find With Workflow tests items from the beginning and returns the first original item whose predicate result is truthy. It stops testing after a match and returnsnull when none match.
Use it instead of filtering when:
- only one item is needed;
- list order defines priority; or
- avoiding unnecessary child runs matters.
Preserve the difference between an item and a result
The three workflow-backed list actions return different things:
If you need both an original item and derived fields, have the loop child
return an object containing both. Create Object
can assemble a predictable result such as:
Choose a list strategy
I only need a built-in list transformation
I only need a built-in list transformation
Use a dedicated Arrays action. It runs in the current workflow and
communicates the operation directly.
I need to run several actions for each item
I need to run several actions for each item
Use Loop Workflow and put the per-item sequence in a callable child
workflow.
I need all items that pass a custom test
I need all items that pass a custom test
Use Filter With Workflow with a predicate child workflow.
I need only the first item that passes
I need only the first item that passes
Use Find With Workflow. Put the highest-priority candidates first.