Edit

Share via


FIRST ER function

Note

Community interest groups have now moved from Yammer to Microsoft Viva Engage. To join a Viva Engage community and take part in the latest discussions, fill out the Request access to Finance and Operations Viva Engage Community form and choose the community you want to join.

The FIRST function returns the first record of the specified list as a Container (record) value, if that list isn't empty. If the list is empty, this function throws an exception.

Syntax

FIRST (list)

Arguments

list: Record list

The valid path of a data source of the Record list data type.

Return values

Container (record)

The resulting record value.

Example 1

The expression FIRST(SPLIT("ABC",1)).Value returns the text value "A".

Example 2

The expression FIRST(SPLIT("",1)).Value throws an exception at runtime.

Additional resources

List functions