The GetFirst function returns the first collection member that satisfies a given filter expression.
Syntax 1
|
The GetFirst function returns the first collection member that satisfies a given filter expression. |
|
GetFirst(collection) |
|
Arguments: |
|
|
collection |
Collection - A collection. |
Syntax 2
|
The GetFirst function returns the first collection member that satisfies a given filter expression. |
|
GetFirst(collection, orderby) |
|
Arguments: |
|
|
collection |
Collection - A collection. |
|
|
orderby |
SortExpression - Field to order by. |
Syntax 3
|
The GetFirst function returns the first collection member that satisfies a given filter expression. |
|
GetFirst(collection, orderby, filter) |
|
Arguments: |
|
|
collection |
Collection - A collection. |
|
|
orderby |
SortExpression - Field to order by. |
|
|
filter |
FilterExpression - A filter expression. |
Remarks
- Example: GetFirst(LineItems) returns {Record::1}\LineItems[1].
- Example: GetFirst(LineItems, ProductID) returns {Record::1}\LineItems[7].
- Example: GetFirst(LineItems, ProductID, Quantity > 10) returns {Record::1}\LineItems[8].
Comments
0 comments
Article is closed for comments.