Newer Version Available
Get List View Records
- Resources
-
1/ui-api/list-records/${listViewId}1/ui-api/list-records/${objectApiName}/${listViewApiName} -
- listViewId—The ID of a list view, such as 00BR0000000Wc0rMAC.
- objectApiName—A supported object, such as Account.
- listViewApiName—The API name of a list view, such as AllAccounts.
- Available version
- 42.0
- HTTP methods
- GET
- Example
-
As an example, let’s say we have a list view named All Accounts with a list view ID of 00BR0000000Wc0rMAC. To get information about all the records on this list view, make this request:
1/services/data/v42.0/ui-api/list-records/00BR0000000Wc0rMACYou can also use the object API name and list view API name of the list view to make the same request:
1/services/data/v42.0/ui-api/list-records/Account/AllAccountsThe request returns a list of records on the list view.
1{ 2 "listInfoETag" : "86d3a33eddb41d9889b38b102c915abf", 3 "records" : { 4 "count" : 3, 5 "currentPageUrl" : "/services/data/v42.0/ui-api/list-records/00BR0000000Wc0rMAC?pageSize=50&pageToken=0", 6 "nextPageUrl" : null, 7 "previousPageUrl" : null, 8 "records" : [ { 9 "apiName" : "Account", 10 "childRelationships" : { }, 11 "eTag" : "d2ac6442449f4818a11b6ea6bc09b39a", 12 "fields" : { 13 "BillingState" : { 14 "displayValue" : null, 15 "value" : "NY" 16 }, 17 "CreatedDate" : { 18 "displayValue" : null, 19 "value" : "2017-11-01T19:10:42.000Z" 20 }, 21 "Id" : { 22 "displayValue" : null, 23 "value" : "001R0000003IXwiIAG" 24 }, 25 "LastModifiedDate" : { 26 "displayValue" : null, 27 "value" : "2017-11-01T19:10:42.000Z" 28 }, 29 "Name" : { 30 "displayValue" : null, 31 "value" : "Acme" 32 }, 33 "Owner" : { 34 "displayValue" : null, 35 "value" : { 36 "apiName" : "User", 37 "childRelationships" : { }, 38 "eTag" : "80236fa1232c205cbfdd1c2f53b1d6b6", 39 "fields" : { 40 "Alias" : { 41 "displayValue" : null, 42 "value" : "AUser" 43 }, 44 "Id" : { 45 "displayValue" : null, 46 "value" : "005R0000000ITVpIAO" 47 } 48 }, 49 "id" : "005R0000000ITVpIAO", 50 "recordTypeInfo" : null 51 } 52 }, 53 "OwnerId" : { 54 "displayValue" : null, 55 "value" : "005R0000000ITVpIAO" 56 }, 57 "Phone" : { 58 "displayValue" : null, 59 "value" : "(212) 555-5555" 60 }, 61 "SystemModstamp" : { 62 "displayValue" : null, 63 "value" : "2017-11-01T19:10:42.000Z" 64 }, 65 "Type" : { 66 "displayValue" : "Prospect", 67 "value" : "Prospect" 68 } 69 }, 70 "id" : "001R0000003IXwiIAG", 71 "recordTypeInfo" : null 72 } 73 ... Additional records removed for brevity ... 74 ] 75 } 76} - Request parameters for GET
-
- Response body for GET
- List Record Collection