Portal Community
What is Collection Operation?

The Collection Operation node provides declarative array manipulation without requiring custom code. It supports nine operations modelled on functional programming patterns (similar to LINQ or JavaScript Array methods). The expression field accepts JavaScript-like lambda expressions evaluated by the BizFirst expression engine, giving access to the item loop variable for per-element logic.

Supported Operations

OperationDescriptionReturns
filterReturns elements where the expression evaluates to trueArray (subset)
mapTransforms each element using the expressionArray (transformed)
reduceAggregates the collection to a single value using expression and initial_valueScalar
sortSorts by the specified field in direction orderArray (sorted)
distinctReturns unique elements, optionally by a fieldArray (deduplicated)
countReturns the number of elements (optionally filtered by expression)Integer
firstReturns the first element (optionally matching expression)Object or null
lastReturns the last element (optionally matching expression)Object or null
reverseReverses the order of the arrayArray (reversed)

Key Capabilities

Common Use Cases

ScenarioOperationHow It Helps
Filter active customersfilterReturn only customers where item.status === 'active'
Extract order IDsmapTransform an array of order objects to an array of item.orderId strings
Sum invoice totalsreduceAccumulate acc + item.total starting from 0
Sort products by pricesortSort on field: "price" with direction: "asc"
Deduplicate email listdistinctRemove duplicate entries by field: "email"
Find first pending itemfirstReturn first element where item.status === 'pending'

In This Guide

Configuration

All properties, operation-specific parameters, and expression syntax for the item variable.

Input & Output

Output ports, result and count fields, and per-operation output examples.

Examples

Five examples covering filter, map, reduce, sort, and distinct with real input/output data.