collect (collect object field values from input list)

Collects the values of object fields from entries of a list. A list and the field path are passed as arguments.

Syntax

$collect(source,propertyPath)

Parameter

Name

Description

source

The source list, which contains the source entries.

propertyPath

The path to a field/property relative to a list entry.

Return value

Returns a new list containing the values of the individual input fields.

Example

Syntax

Result

$collect($input,username)

If $input is a list of users, this expression returns a list of user names.

$collect($input,address.name1)

If $input is a list of users, this expression returns all 'Name 1' of all these users.