Skip to main content

Transform

Builds a new object by visually mapping fields from earlier steps. Use it to reshape data, rename fields, nest objects and map over arrays without writing code. For logic that is easier to write as a script, use Code.

Properties​

PropertyRequiredDescription
TransformNoVisual field mapping tree. Add fields using the inline builder

Behaviour​

The Transform step produces a single output object whose shape you define in the builder. Each field in the builder corresponds to a key in the output. Fields can be:

  • Value — a static value or an expression referencing any upstream data
  • Object — a nested object with its own child fields
  • Array map — maps each item in a source array to a new shape

Rows with the Active toggle off are excluded from the output.

Array mapping​

When a field is set to Array map, you specify a source array expression and a template that describes how each item should be transformed. Inside the template, use $item to reference the current element:

{{ $item.firstName }}
{{ $item.email.toLowerCase() }}

An optional Filter expression on the array map row lets you exclude items. Return a falsy value to skip an item:

{{ $item.active }}

Array maps can be nested to handle arrays of arrays.

Large file array mapping​

When the source expression of an Array map resolves to a dataset (a large result of Parse CSV, Spreadsheet File, HTTP Request or a previous Transform), the array map streams it row by row rather than loading it entirely into memory:

  • Each row is read and mapped through the template.
  • When the mapped rows add up to more than about 4 MB, the output field is a new dataset, which can be passed downstream to a Loop step or another Transform; a smaller result (for example after a When condition kept only a few rows) is an ordinary list.
  • The full dataset is never held in memory simultaneously.

This behaviour is automatic — no configuration is needed beyond connecting the file reference to the source expression.

Output​

The output of the step is the object you constructed. Access individual fields downstream:

{{ $nodes['Transform'].fieldName }}
{{ $nodes['Transform'].address.city }}
{{ $nodes['Transform'].tags[0] }}

When an array map field produces a dataset, that field is a dataset rather than an inline array. Pass it to a Loop step to process rows individually.

Replace Transform with the actual name you gave the step.

Example​

Reshape an API response before passing it to a second API:

FieldTypeValue
userIdValue{{ $nodes['Get User'].responseBody.id }}
fullNameValue{{ $nodes['Get User'].responseBody.firstName + ' ' + $nodes['Get User'].responseBody.lastName }}
emailsArray mapSource: {{ $nodes['Get User'].responseBody.contacts }}, element: {{ $item.email }}