List Order By Input
Information describing how to order a related list. This request
body supports sorting related lists only by one field. Use this request body to update a
related list.
- Example
-
This example uses a request body to update the metadata for the Contracts related list for the Account object:
PATCH /services/data/v64.0/ui-api/related-list-info/Account/Contracts
{ "orderedByInfo" : [{ "fieldApiName": "Name", "isAscending" : true }], "userPreferences" : { "columnWidths" : { "Name" : -1 }, "columnWrap" : { "Name" : false } } }
- Properties
-
Name Type Description Required or Optional Available Version fieldApiName String The API name for the field. Optional 50.0 isAscending Boolean Indicates whether the list column is ascending or descending. Optional 50.0