GetLast Function

  • Updated

The GetLast function returns the last collection member that satisfies a given filter expression.

Syntax 1

 

The GetLast function returns the last collection member that satisfies a given filter expression.

 

GetLast(collection)

 

 

Arguments:

 

 

 

collection

Collection - A collection.

Syntax 2

 

The GetLast function returns the last collection member that satisfies a given filter expression.

 

GetLast(collection, orderby)

 

 

Arguments:

 

 

 

collection

Collection - A collection.

 

 

orderby

SortExpression - Field or expression to order by.

Syntax 3

 

The GetLast function returns the last collection member that satisfies a given filter expression.

 

GetLast(collection, orderby, filter)

 

 

Arguments:

 

 

 

collection

Collection - A collection.

 

 

orderby

SortExpression - Field or expression to order by.

 

 

filter

FilterExpression - The filter criteria.

Remarks

  • Example: GetLast(LineItems) returns {Record::1}\LineItems[20].
  • Example: GetLast(LineItems, ProductID) returns {Record::1}\LineItems[18].
  • Example: GetLast(LineItems, ProductID, Quantity > 10) returns {Record::1}\LineItems[17].

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.