Split Out
Takes an array inside your data and turns each element into its own item — for example, the orders array inside an API response becomes a list of orders. It is the opposite of Aggregate.
Parameters
| Name | Required | Default | Description |
|---|---|---|---|
Input (object or items) (input) | Yes | — | An object, or an array of objects, e.g. {{ $nodes['HTTP Request'].responseBody }}. |
Field to split out (field) | No | The input itself | Path to the array inside each input object, e.g. orders or data.results. |
Include the other fields of the parent (includeParent) | No | false | Copy the parent object's other fields onto every new item. |
Field name for non-object elements (destinationField) | No | Last segment of Field (or value) | Shown when Include the other fields is on. When an element isn't an object (e.g. a string), it is stored under this name. |
How it works
For each input object, Split Out reads the value at Field and outputs:
- one item per element when the value is an array;
- the value itself as a single item when it isn't an array;
- nothing when the field is missing or
null.
With Field empty, Split Out works on the input entries themselves: each object is split into { "key": …, "value": … } pairs (one per property), each nested array is expanded into its elements, and plain values pass through unchanged.
With Include the other fields of the parent on, each output item is a copy of the parent without the split field, plus the element's fields (the element wins on conflicts). Non-object elements go under Field name for non-object elements.
Ports
| Port | Description |
|---|---|
main (input) | The step(s) Split Out runs after. |
output | { items, count } |
Example
Input from Get Invoice:
{
"invoiceId": "INV-104",
"customer": "Acme Ltd",
"lines": [
{ "sku": "A-1", "qty": 2 },
{ "sku": "B-7", "qty": 1 }
]
}
- Input:
{{ $nodes['Get Invoice'] }} - Field to split out:
lines - Include the other fields of the parent: on
Output:
{
"items": [
{ "invoiceId": "INV-104", "customer": "Acme Ltd", "sku": "A-1", "qty": 2 },
{ "invoiceId": "INV-104", "customer": "Acme Ltd", "sku": "B-7", "qty": 1 }
],
"count": 2
}
With Include the other fields off, the items would be just { "sku": "A-1", "qty": 2 } and { "sku": "B-7", "qty": 1 }.
If the input is an array of invoices, the lines of all of them are output in order.