Collects the values of object fields from entries of a list. A list and the field path are passed as arguments.
Tooltip
Syntax: $collect(source,propertyPath)
Parameter
Description
sourceThe source list, which contains the source entries.
propertyPathThe path to a field/property relative to a list entry.
Returns a new list containing the values of the individual input fields.
Example: $collect($input,username) → If $input is a list of users, this expression returns a list of usernames.
Syntax
$collect(source,propertyPath)
Parameter
Name | Description |
|---|---|
| The source list, which contains the source entries. |
| 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. |