Skip to content

Array Operations ​

Transforms an array by filtering, projecting, sorting, counting, or slicing its contents, and returns the result.

Purpose ​

Use Array Operations when a workflow holds a list of items and needs to narrow it down, reorder it, extract specific values, or measure its size before passing data to the next step. It works with both flat arrays and arrays of objects, making it suitable for any list-shaped data produced by earlier tasks — such as search results, database rows, or split strings.

Inputs ​

FieldTypeRequiredDescription
Input ArrayTextYesThe array to operate on. Typically a variable reference from a previous task.
OperationDropdownYesThe transformation to apply. See the Operations table below.
Property NameTextNoThe object property to filter by, project, group by, or sort by. Visible when Operation is Where, Select, DistinctBy, OrderBy, or OrderByDescending.
ValueTextNoThe value a property must equal for an item to pass the filter. Visible when Operation is Where.
Skip CountTextNoNumber of items to discard from the beginning of the array. Visible when Operation is Skip.
Take CountTextNoMaximum number of items to return from the beginning of the array. Visible when Operation is Take.

Visibility Rules ​

Property Name is visible when Operation is Where, Select, DistinctBy, OrderBy, or OrderByDescending. Value is visible when Operation is Where. Skip Count is visible when Operation is Skip. Take Count is visible when Operation is Take.

Operations ​

OperationDescription
FirstReturns the first item in the array.
LastReturns the last item in the array.
WhereReturns only the items where the specified property equals the specified value.
SelectReturns a flat list of values extracted from the specified property of each object.
DistinctRemoves duplicate items from the array.
DistinctByRemoves items that share the same value for the specified property, keeping the first occurrence.
CountReturns the number of items in the array.
SkipReturns the array with the first N items removed.
TakeReturns only the first N items of the array.
OrderBySorts the array ascending by the specified property.
OrderByDescendingSorts the array descending by the specified property.

Outputs ​

NameDescription
ResultThe transformed array or value produced by the operation. For Count, this is a number. For First and Last, this is a single item. For all other operations, this is an array.
ResultCountThe number of items in the result array. Produced by all operations that return an array (not Count, First, or Last).

Examples ​

Filter objects by property value

Return only the users with the role Admin.

FieldValue
Input ArrayGetUsers.Result
OperationWhere
Property NameRole
ValueAdmin
Extract a list of property values

Build a flat list of all user names from an array of user objects.

FieldValue
Input ArrayGetUsers.Result
OperationSelect
Property NameName
Sort ascending by a property
FieldValue
Input ArrayGetUsers.Result
OperationOrderBy
Property NameAge

Tentech