Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.43 KB

record-getascending-method.md

File metadata and controls

43 lines (34 loc) · 1.43 KB
title description ms.author ms.date ms.topic author ms.reviewer
Record.GetAscending(Any) Method
Gets the sort order for the records returned.
solsen
05/14/2024
reference
SusanneWindfeldPedersen
solsen

Record.GetAscending(Any) Method

Version: Available or changed with runtime version 1.0.

Gets the sort order for the records returned. You can use GETASCENDING to identify the sort order of the specified field because fields can be sorted in ascending or descending order. For example, you can read data from an ODATA web service where the data is sorted in ascending order on the Name field but in descending order on the City field.

Syntax

IsAscending :=   Record.GetAscending(Field: Any)

Parameters

Record
 Type: Record
An instance of the Record data type.

Field
 Type: Any
The field that you want to get the sort order for.

Return Value

IsAscending
 Type: Boolean

See Also

Record Data Type
Get Started with AL
Developing Extensions