Transform
Part of Uipath maestro flow. Install the skill and your agent reads this page when it needs the depth.
Transform
Exact signatures, fields, and defaults: transform().
Transform applies filter, map, or group-by operations to an array.
Signature:
transform({ collection, operations, variant?: 'filter' | 'map' | 'group-by' }).
Operations are the SDK's filter, map, and groupBy discriminated shapes.
.step('active', transform({ variant: 'filter', collection: input('rows'),
operations: [{ type: 'filter', filters: [
{ field: 'status', condition: 'equals', value: 'active' },
] }] }))
At a glance
Filter, map, group, or chain operations over an array without custom JavaScript.
Prefer a named variant for one operation and generic Transform for a chain; verify chain order against real fields.
Choosing the shape
Prefer a named variant for one standard operation so the canvas communicates intent. Use generic Transform for a chain; use Script when the requested calculation does not fit the transform operations.
Data-dependent review
Operations run in order. A map can remove a field that a later filter or group expects, and a plausible misspelled field on untyped input can yield empty rows without a structural failure. Review the chain against representative items and assert the resulting values, not merely that the node ran.
Omit variant for the generic node. Set variant: 'map' | 'filter' | 'group-by'
for a single-purpose node; operations must then contain exactly one entry.
Use transform() for every Transform node. To use a newer registry version,
pass it on the step: .step('g', transform({ ... }), { version: '1.1' }). The
factory writes collection as a plain $vars path and puts each operation's
settings under config. A rawNode copy of the manifest keeps v() as an
expression object, and the runtime reads that as an empty collection.