Hello Friends,
I want to get only last record from table by using query in Ax 2012.
I am using below code.
queryBuildDataSource.addSortField(fieldNum(ABC, RecId), SortOrder::Descending);
By using above code I am getting all records but I want to get only last record.
Please tell me how to get only last record from query.
Thanks & Regards
Rahul