Newer Version Available

This content describes an older version of this product. View Latest

ListViewOrderBy

Use the ListViewOrderBy object with executeListView() to determine the order in which records are returned from a list view.
The ListViewOrderBy object is returned by the describeSoqlListViews() call, is an optional input to the executeListView() call, and has the following properties:
Name Type Description
fieldNameOrPath string The field name or SOQL path of the field on which to sort the records.
nullsPosition orderByNullsPosition An enumerated value that determines where nulls are sorted in the results:
  • first
  • last
sortDirection orderByDirection An enumerated value that determines the sort order of the results:
  • ascending
  • descending