Newer Version Available

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

ListViewOrderBy

To determine the order in which records are returned from a list view, use the ListViewOrderBy object with executeListView().

The ListViewOrderBy object is returned by the describeSoqlListViews() call, is an optional input to the executeListView() call, and has these 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