Create a List View for an Object
Create a list view associated with an object.
- Resource
-
/ui-api/list-info/${objectApiName}
- Available version
- 61.0
- HTTP methods
- POST
- Example
- This example uses a request body to create the metadata for an account list
view.
POST /services/data/v64.0/ui-api/list-info/Account
{ "listViewApiName": "MyAccountListView", "filteredByInfo": [ { "fieldApiName": "Name", "operandLabels": [ "This", "That"], "operator": "Equals" }, { "fieldApiName": "Phone", "operandLabels": [ "919"], "operator": "StartsWith" }, { "fieldApiName": "AnnualRevenue", "operandLabels": [ "1000000"], "operator": "GreaterThan" } ], "filterLogicString" : "(1 OR 2) AND 3", "label": "Accounts opened this year", "scope": { "apiName": "entity", "entityId": "00Gxx000000sjI8", "relatedEntityId": "701xx000003HZ7X" }, "visibility": "Public" }
- Request parameters for POST
-
Parameter Name Type Description Required or Optional Available Version listInfoInput List Info Post Input Info to create a list. Required 61.0 - Response body for POST
- List Info