Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Create a List View for an Object

Create a list view associated with an object.
Resource
1/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.
1POST /services/data/v67.0/ui-api/list-info/Account
1{
2"listViewApiName": "MyAccountListView",
3"filteredByInfo": [
4  {
5  "fieldApiName": "Name",
6  "operandLabels": [ "This", "That"],
7  "operator": "Equals"
8  },
9  {
10  "fieldApiName": "Phone",
11  "operandLabels": [ "919"],
12  "operator": "StartsWith"
13  },
14{
15  "fieldApiName": "AnnualRevenue",
16  "operandLabels": [ "1000000"],
17  "operator": "GreaterThan"
18  }
19],
20"filterLogicString" : "(1 OR 2) AND 3",
21"label": "Accounts opened this year",
22"scope": {
23  "apiName": "entity",
24  "entityId": "00Gxx000000sjI8",
25  "relatedEntityId": "701xx000003HZ7X"
26},
27"visibility": "Public"
28}
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