--- title: "collect (collect object field values from input list)" slug: "calc-function-collect" updated: 2026-05-12T09:55:49Z published: 2026-05-12T09:55:49Z canonical: "docs.lobstersoftware.com/calc-function-collect" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # collect (collect object field values from input list) > [!NOTE] > Collects the values of object fields from entries of a list. A list and the field path are passed as arguments. > > > [!TIP] > > Tooltip > > > > Syntax: *$collect(source,propertyPath)* > > > > | Parameter | Description | > > | --- | --- | > > | `source` | The source list, which contains the source entries. | > > | `propertyPath` | The 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 | | --- | --- | | `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. |