Chilkat Online Tools

C / Salesforce Platform APIs / Get Most Recently Used List View Records

Back to Collection Items

#include <C_CkHttp.h>
#include <C_CkStringBuilder.h>
#include <C_CkJsonObject.h>

void ChilkatSample(void)
    {
    HCkHttp http;
    BOOL success;
    HCkStringBuilder sbResponseBody;
    HCkJsonObject jResp;
    int respStatusCode;
    const char *apiName;
    const char *eTag;
    const char *DisplayValue;
    const char *Value;
    const char *IdDisplayValue;
    const char *IdValue;
    const char *LastModifiedByIdDisplayValue;
    const char *LastModifiedByIdValue;
    const char *LastModifiedDateDisplayValue;
    const char *LastModifiedDateValue;
    const char *NameDisplayValue;
    const char *NameValue;
    const char *OwnerDisplayValue;
    const char *ApiName;
    const char *ETag;
    const char *AliasDisplayValue;
    const char *AliasValue;
    const char *CreatedDateDisplayValue;
    const char *CreatedDateValue;
    const char *SystemModstampDisplayValue;
    const char *SystemModstampValue;
    const char *ValueId;
    const char *LastModifiedById;
    const char *LastModifiedDate;
    const char *RecordTypeId;
    const char *RecordTypeInfo;
    const char *SystemModstamp;
    int WeakEtag;
    const char *OwnerIdDisplayValue;
    const char *OwnerIdValue;
    const char *PhoneDisplayValue;
    const char *PhoneValue;
    const char *SiteDisplayValue;
    const char *SiteValue;
    const char *id;
    const char *lastModifiedById;
    const char *lastModifiedDate;
    const char *recordTypeId;
    const char *recordTypeInfo;
    const char *systemModstamp;
    int weakEtag;
    int count;
    const char *currentPageToken;
    const char *currentPageUrl;
    const char *listInfoETag;
    const char *Id;
    const char *ListViewApiName;
    const char *ObjectApiName;
    const char *v_Type;
    const char *nextPageToken;
    const char *nextPageUrl;
    int pageSize;
    const char *previousPageToken;
    const char *previousPageUrl;
    const char *sortBy;
    int i;
    int count_i;

    // This example assumes the Chilkat API to have been previously unlocked.
    // See Global Unlock Sample for sample code.

    http = CkHttp_Create();

    // Adds the "Authorization: Bearer <access_token>" header.
    CkHttp_putAuthToken(http,"<access_token>");

    sbResponseBody = CkStringBuilder_Create();
    success = CkHttp_QuickGetSb(http,"https://domain.com/services/data/v{{version}}/ui-api/mru-list-records/:SOBJECT_API_NAME",sbResponseBody);
    if (success == FALSE) {
        printf("%s\n",CkHttp_lastErrorText(http));
        CkHttp_Dispose(http);
        CkStringBuilder_Dispose(sbResponseBody);
        return;
    }

    jResp = CkJsonObject_Create();
    CkJsonObject_LoadSb(jResp,sbResponseBody);
    CkJsonObject_putEmitCompact(jResp,FALSE);

    printf("Response Body:\n");
    printf("%s\n",CkJsonObject_emit(jResp));

    respStatusCode = CkHttp_getLastStatus(http);
    printf("Response Status Code = %d\n",respStatusCode);
    if (respStatusCode >= 400) {
        printf("Response Header:\n");
        printf("%s\n",CkHttp_lastHeader(http));
        printf("Failed.\n");
        CkHttp_Dispose(http);
        CkStringBuilder_Dispose(sbResponseBody);
        CkJsonObject_Dispose(jResp);
        return;
    }

    // Sample JSON response:
    // (Sample code for parsing the JSON response is shown below)

    // {
    //   "count": 4,
    //   "currentPageToken": "0",
    //   "currentPageUrl": "/services/data/v58.0/ui-api/mru-list-records/Account?pageSize=50&pageToken=0",
    //   "fields": [
    //   ],
    //   "listInfoETag": "4c63719f66dbb57c7cb86c2effc5f08b",
    //   "listReference": {
    //     "id": null,
    //     "listViewApiName": null,
    //     "objectApiName": "Account",
    //     "type": "mru"
    //   },
    //   "nextPageToken": null,
    //   "nextPageUrl": null,
    //   "optionalFields": [
    //   ],
    //   "pageSize": 50,
    //   "previousPageToken": null,
    //   "previousPageUrl": null,
    //   "records": [
    //     {
    //       "apiName": "Account",
    //       "childRelationships": {},
    //       "eTag": "f7f6e483706369d93dc673d2afff3d4b",
    //       "fields": {
    //         "CreatedDate": {
    //           "displayValue": "09/05/2016 15:51",
    //           "value": "2016-05-09T13:51:39.000Z"
    //         },
    //         "Id": {
    //           "displayValue": null,
    //           "value": "00158000006QBOlAAO"
    //         },
    //         "LastModifiedById": {
    //           "displayValue": null,
    //           "value": "00558000000yFyDAAU"
    //         },
    //         "LastModifiedDate": {
    //           "displayValue": "06/10/2023 11:14",
    //           "value": "2023-10-06T09:14:04.000Z"
    //         },
    //         "Name": {
    //           "displayValue": null,
    //           "value": "United Oil & Gas Corp."
    //         },
    //         "Owner": {
    //           "displayValue": "Philippe Ozil",
    //           "value": {
    //             "apiName": "User",
    //             "childRelationships": {},
    //             "eTag": "a12d0b3adcc7691ad4ffd5dc82bd3276",
    //             "fields": {
    //               "Alias": {
    //                 "displayValue": null,
    //                 "value": "POzil"
    //               },
    //               "CreatedDate": {
    //                 "displayValue": "09/05/2016 15:51",
    //                 "value": "2016-05-09T13:51:39.000Z"
    //               },
    //               "Id": {
    //                 "displayValue": null,
    //                 "value": "00558000000yFyDAAU"
    //               },
    //               "LastModifiedById": {
    //                 "displayValue": null,
    //                 "value": "00558000000yFyDAAU"
    //               },
    //               "LastModifiedDate": {
    //                 "displayValue": "06/10/2023 10:34",
    //                 "value": "2023-10-06T08:34:22.000Z"
    //               },
    //               "Name": {
    //                 "displayValue": null,
    //                 "value": "Philippe Ozil"
    //               },
    //               "SystemModstamp": {
    //                 "displayValue": "06/10/2023 10:34",
    //                 "value": "2023-10-06T08:34:22.000Z"
    //               }
    //             },
    //             "id": "00558000000yFyDAAU",
    //             "lastModifiedById": "00558000000yFyDAAU",
    //             "lastModifiedDate": "2023-10-06T08:34:22.000Z",
    //             "recordTypeId": null,
    //             "recordTypeInfo": null,
    //             "systemModstamp": "2023-10-06T08:34:22.000Z",
    //             "weakEtag": 1696581262000
    //           }
    //         },
    //         "OwnerId": {
    //           "displayValue": null,
    //           "value": "00558000000yFyDAAU"
    //         },
    //         "Phone": {
    //           "displayValue": null,
    //           "value": "(212) 842-5500"
    //         },
    //         "Site": {
    //           "displayValue": null,
    //           "value": null
    //         },
    //         "SystemModstamp": {
    //           "displayValue": "06/10/2023 11:14",
    //           "value": "2023-10-06T09:14:04.000Z"
    //         }
    //       },
    //       "id": "00158000006QBOlAAO",
    //       "lastModifiedById": "00558000000yFyDAAU",
    //       "lastModifiedDate": "2023-10-06T09:14:04.000Z",
    //       "recordTypeId": "012000000000000AAA",
    //       "recordTypeInfo": null,
    //       "systemModstamp": "2023-10-06T09:14:04.000Z",
    //       "weakEtag": 1696583644000
    //     },
    //     {
    //       "apiName": "Account",
    //       "childRelationships": {},
    //       "eTag": "08edfcddd69a2afecdf0ebb41cb56796",
    //       "fields": {
    //         "CreatedDate": {
    //           "displayValue": "09/05/2016 15:51",
    //           "value": "2016-05-09T13:51:39.000Z"
    //         },
    //         "Id": {
    //           "displayValue": null,
    //           "value": "00158000006QBOiAAO"
    //         },
    //         "LastModifiedById": {
    //           "displayValue": null,
    //           "value": "00558000000yFyDAAU"
    //         },
    //         "LastModifiedDate": {
    //           "displayValue": "11/05/2016 10:48",
    //           "value": "2016-05-11T08:48:05.000Z"
    //         },
    //         "Name": {
    //           "displayValue": null,
    //           "value": "Pyramid Construction Inc."
    //         },
    //         "Owner": {
    //           "displayValue": "Philippe Ozil",
    //           "value": {
    //             "apiName": "User",
    //             "childRelationships": {},
    //             "eTag": "a12d0b3adcc7691ad4ffd5dc82bd3276",
    //             "fields": {
    //               "Alias": {
    //                 "displayValue": null,
    //                 "value": "POzil"
    //               },
    //               "CreatedDate": {
    //                 "displayValue": "09/05/2016 15:51",
    //                 "value": "2016-05-09T13:51:39.000Z"
    //               },
    //               "Id": {
    //                 "displayValue": null,
    //                 "value": "00558000000yFyDAAU"
    //               },
    //               "LastModifiedById": {
    //                 "displayValue": null,
    //                 "value": "00558000000yFyDAAU"
    //               },
    //               "LastModifiedDate": {
    //                 "displayValue": "06/10/2023 10:34",
    //                 "value": "2023-10-06T08:34:22.000Z"
    //               },
    //               "Name": {
    //                 "displayValue": null,
    //                 "value": "Philippe Ozil"
    //               },
    //               "SystemModstamp": {
    //                 "displayValue": "06/10/2023 10:34",
    //                 "value": "2023-10-06T08:34:22.000Z"
    //               }
    //             },
    //             "id": "00558000000yFyDAAU",
    //             "lastModifiedById": "00558000000yFyDAAU",
    //             "lastModifiedDate": "2023-10-06T08:34:22.000Z",
    //             "recordTypeId": null,
    //             "recordTypeInfo": null,
    //             "systemModstamp": "2023-10-06T08:34:22.000Z",
    //             "weakEtag": 1696581262000
    //           }
    //         },
    //         "OwnerId": {
    //           "displayValue": null,
    //           "value": "00558000000yFyDAAU"
    //         },
    //         "Phone": {
    //           "displayValue": null,
    //           "value": "(014) 427-4427"
    //         },
    //         "Site": {
    //           "displayValue": null,
    //           "value": null
    //         },
    //         "SystemModstamp": {
    //           "displayValue": "11/05/2016 10:48",
    //           "value": "2016-05-11T08:48:05.000Z"
    //         }
    //       },
    //       "id": "00158000006QBOiAAO",
    //       "lastModifiedById": "00558000000yFyDAAU",
    //       "lastModifiedDate": "2016-05-11T08:48:05.000Z",
    //       "recordTypeId": "012000000000000AAA",
    //       "recordTypeInfo": null,
    //       "systemModstamp": "2016-05-11T08:48:05.000Z",
    //       "weakEtag": 1462956485000
    //     },
    //     {
    //       "apiName": "Account",
    //       "childRelationships": {},
    //       "eTag": "2e6480ff0176177161db7d13b49b6a70",
    //       "fields": {
    //         "CreatedDate": {
    //           "displayValue": "27/02/2020 10:28",
    //           "value": "2020-02-27T09:28:06.000Z"
    //         },
    //         "Id": {
    //           "displayValue": null,
    //           "value": "0014H00002LbR7QQAV"
    //         },
    //         "LastModifiedById": {
    //           "displayValue": null,
    //           "value": "00558000000yFyDAAU"
    //         },
    //         "LastModifiedDate": {
    //           "displayValue": "04/10/2023 20:35",
    //           "value": "2023-10-04T18:35:13.000Z"
    //         },
    //         "Name": {
    //           "displayValue": null,
    //           "value": "ABC Computing"
    //         },
    //         "Owner": {
    //           "displayValue": "Philippe Ozil",
    //           "value": {
    //             "apiName": "User",
    //             "childRelationships": {},
    //             "eTag": "a12d0b3adcc7691ad4ffd5dc82bd3276",
    //             "fields": {
    //               "Alias": {
    //                 "displayValue": null,
    //                 "value": "POzil"
    //               },
    //               "CreatedDate": {
    //                 "displayValue": "09/05/2016 15:51",
    //                 "value": "2016-05-09T13:51:39.000Z"
    //               },
    //               "Id": {
    //                 "displayValue": null,
    //                 "value": "00558000000yFyDAAU"
    //               },
    //               "LastModifiedById": {
    //                 "displayValue": null,
    //                 "value": "00558000000yFyDAAU"
    //               },
    //               "LastModifiedDate": {
    //                 "displayValue": "06/10/2023 10:34",
    //                 "value": "2023-10-06T08:34:22.000Z"
    //               },
    //               "Name": {
    //                 "displayValue": null,
    //                 "value": "Philippe Ozil"
    //               },
    //               "SystemModstamp": {
    //                 "displayValue": "06/10/2023 10:34",
    //                 "value": "2023-10-06T08:34:22.000Z"
    //               }
    //             },
    //             "id": "00558000000yFyDAAU",
    //             "lastModifiedById": "00558000000yFyDAAU",
    //             "lastModifiedDate": "2023-10-06T08:34:22.000Z",
    //             "recordTypeId": null,
    //             "recordTypeInfo": null,
    //             "systemModstamp": "2023-10-06T08:34:22.000Z",
    //             "weakEtag": 1696581262000
    //           }
    //         },
    //         "OwnerId": {
    //           "displayValue": null,
    //           "value": "00558000000yFyDAAU"
    //         },
    //         "Phone": {
    //           "displayValue": null,
    //           "value": "123123123"
    //         },
    //         "Site": {
    //           "displayValue": null,
    //           "value": null
    //         },
    //         "SystemModstamp": {
    //           "displayValue": "04/10/2023 20:35",
    //           "value": "2023-10-04T18:35:13.000Z"
    //         }
    //       },
    //       "id": "0014H00002LbR7QQAV",
    //       "lastModifiedById": "00558000000yFyDAAU",
    //       "lastModifiedDate": "2023-10-04T18:35:13.000Z",
    //       "recordTypeId": "012000000000000AAA",
    //       "recordTypeInfo": null,
    //       "systemModstamp": "2023-10-04T18:35:13.000Z",
    //       "weakEtag": 1696444513000
    //     },
    //     {
    //       "apiName": "Account",
    //       "childRelationships": {},
    //       "eTag": "5577bcfb6590f3f00dfa044865276944",
    //       "fields": {
    //         "CreatedDate": {
    //           "displayValue": "14/09/2023 00:04",
    //           "value": "2023-09-13T22:04:24.000Z"
    //         },
    //         "Id": {
    //           "displayValue": null,
    //           "value": "0014H00004GXwPnQAL"
    //         },
    //         "LastModifiedById": {
    //           "displayValue": null,
    //           "value": "00558000000yFyDAAU"
    //         },
    //         "LastModifiedDate": {
    //           "displayValue": "14/09/2023 00:04",
    //           "value": "2023-09-13T22:04:24.000Z"
    //         },
    //         "Name": {
    //           "displayValue": null,
    //           "value": "test"
    //         },
    //         "Owner": {
    //           "displayValue": "Philippe Ozil",
    //           "value": {
    //             "apiName": "User",
    //             "childRelationships": {},
    //             "eTag": "a12d0b3adcc7691ad4ffd5dc82bd3276",
    //             "fields": {
    //               "Alias": {
    //                 "displayValue": null,
    //                 "value": "POzil"
    //               },
    //               "CreatedDate": {
    //                 "displayValue": "09/05/2016 15:51",
    //                 "value": "2016-05-09T13:51:39.000Z"
    //               },
    //               "Id": {
    //                 "displayValue": null,
    //                 "value": "00558000000yFyDAAU"
    //               },
    //               "LastModifiedById": {
    //                 "displayValue": null,
    //                 "value": "00558000000yFyDAAU"
    //               },
    //               "LastModifiedDate": {
    //                 "displayValue": "06/10/2023 10:34",
    //                 "value": "2023-10-06T08:34:22.000Z"
    //               },
    //               "Name": {
    //                 "displayValue": null,
    //                 "value": "Philippe Ozil"
    //               },
    //               "SystemModstamp": {
    //                 "displayValue": "06/10/2023 10:34",
    //                 "value": "2023-10-06T08:34:22.000Z"
    //               }
    //             },
    //             "id": "00558000000yFyDAAU",
    //             "lastModifiedById": "00558000000yFyDAAU",
    //             "lastModifiedDate": "2023-10-06T08:34:22.000Z",
    //             "recordTypeId": null,
    //             "recordTypeInfo": null,
    //             "systemModstamp": "2023-10-06T08:34:22.000Z",
    //             "weakEtag": 1696581262000
    //           }
    //         },
    //         "OwnerId": {
    //           "displayValue": null,
    //           "value": "00558000000yFyDAAU"
    //         },
    //         "Phone": {
    //           "displayValue": null,
    //           "value": null
    //         },
    //         "Site": {
    //           "displayValue": null,
    //           "value": null
    //         },
    //         "SystemModstamp": {
    //           "displayValue": "14/09/2023 00:04",
    //           "value": "2023-09-13T22:04:24.000Z"
    //         }
    //       },
    //       "id": "0014H00004GXwPnQAL",
    //       "lastModifiedById": "00558000000yFyDAAU",
    //       "lastModifiedDate": "2023-09-13T22:04:24.000Z",
    //       "recordTypeId": "012000000000000AAA",
    //       "recordTypeInfo": null,
    //       "systemModstamp": "2023-09-13T22:04:24.000Z",
    //       "weakEtag": 1694642664000
    //     }
    //   ],
    //   "sortBy": null
    // }

    // Sample code for parsing the JSON response...
    // Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

    // Chilkat functions returning "const char *" return a pointer to temporary internal memory owned and managed by Chilkat.

    count = CkJsonObject_IntOf(jResp,"count");
    currentPageToken = CkJsonObject_stringOf(jResp,"currentPageToken");
    currentPageUrl = CkJsonObject_stringOf(jResp,"currentPageUrl");
    listInfoETag = CkJsonObject_stringOf(jResp,"listInfoETag");
    Id = CkJsonObject_stringOf(jResp,"listReference.id");
    ListViewApiName = CkJsonObject_stringOf(jResp,"listReference.listViewApiName");
    ObjectApiName = CkJsonObject_stringOf(jResp,"listReference.objectApiName");
    v_Type = CkJsonObject_stringOf(jResp,"listReference.type");
    nextPageToken = CkJsonObject_stringOf(jResp,"nextPageToken");
    nextPageUrl = CkJsonObject_stringOf(jResp,"nextPageUrl");
    pageSize = CkJsonObject_IntOf(jResp,"pageSize");
    previousPageToken = CkJsonObject_stringOf(jResp,"previousPageToken");
    previousPageUrl = CkJsonObject_stringOf(jResp,"previousPageUrl");
    sortBy = CkJsonObject_stringOf(jResp,"sortBy");
    i = 0;
    count_i = CkJsonObject_SizeOfArray(jResp,"fields");
    while (i < count_i) {
        CkJsonObject_putI(jResp,i);
        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObject_SizeOfArray(jResp,"optionalFields");
    while (i < count_i) {
        CkJsonObject_putI(jResp,i);
        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObject_SizeOfArray(jResp,"records");
    while (i < count_i) {
        CkJsonObject_putI(jResp,i);
        apiName = CkJsonObject_stringOf(jResp,"records[i].apiName");
        eTag = CkJsonObject_stringOf(jResp,"records[i].eTag");
        DisplayValue = CkJsonObject_stringOf(jResp,"records[i].fields.CreatedDate.displayValue");
        Value = CkJsonObject_stringOf(jResp,"records[i].fields.CreatedDate.value");
        IdDisplayValue = CkJsonObject_stringOf(jResp,"records[i].fields.Id.displayValue");
        IdValue = CkJsonObject_stringOf(jResp,"records[i].fields.Id.value");
        LastModifiedByIdDisplayValue = CkJsonObject_stringOf(jResp,"records[i].fields.LastModifiedById.displayValue");
        LastModifiedByIdValue = CkJsonObject_stringOf(jResp,"records[i].fields.LastModifiedById.value");
        LastModifiedDateDisplayValue = CkJsonObject_stringOf(jResp,"records[i].fields.LastModifiedDate.displayValue");
        LastModifiedDateValue = CkJsonObject_stringOf(jResp,"records[i].fields.LastModifiedDate.value");
        NameDisplayValue = CkJsonObject_stringOf(jResp,"records[i].fields.Name.displayValue");
        NameValue = CkJsonObject_stringOf(jResp,"records[i].fields.Name.value");
        OwnerDisplayValue = CkJsonObject_stringOf(jResp,"records[i].fields.Owner.displayValue");
        ApiName = CkJsonObject_stringOf(jResp,"records[i].fields.Owner.value.apiName");
        ETag = CkJsonObject_stringOf(jResp,"records[i].fields.Owner.value.eTag");
        AliasDisplayValue = CkJsonObject_stringOf(jResp,"records[i].fields.Owner.value.fields.Alias.displayValue");
        AliasValue = CkJsonObject_stringOf(jResp,"records[i].fields.Owner.value.fields.Alias.value");
        CreatedDateDisplayValue = CkJsonObject_stringOf(jResp,"records[i].fields.Owner.value.fields.CreatedDate.displayValue");
        CreatedDateValue = CkJsonObject_stringOf(jResp,"records[i].fields.Owner.value.fields.CreatedDate.value");
        IdDisplayValue = CkJsonObject_stringOf(jResp,"records[i].fields.Owner.value.fields.Id.displayValue");
        IdValue = CkJsonObject_stringOf(jResp,"records[i].fields.Owner.value.fields.Id.value");
        LastModifiedByIdDisplayValue = CkJsonObject_stringOf(jResp,"records[i].fields.Owner.value.fields.LastModifiedById.displayValue");
        LastModifiedByIdValue = CkJsonObject_stringOf(jResp,"records[i].fields.Owner.value.fields.LastModifiedById.value");
        LastModifiedDateDisplayValue = CkJsonObject_stringOf(jResp,"records[i].fields.Owner.value.fields.LastModifiedDate.displayValue");
        LastModifiedDateValue = CkJsonObject_stringOf(jResp,"records[i].fields.Owner.value.fields.LastModifiedDate.value");
        NameDisplayValue = CkJsonObject_stringOf(jResp,"records[i].fields.Owner.value.fields.Name.displayValue");
        NameValue = CkJsonObject_stringOf(jResp,"records[i].fields.Owner.value.fields.Name.value");
        SystemModstampDisplayValue = CkJsonObject_stringOf(jResp,"records[i].fields.Owner.value.fields.SystemModstamp.displayValue");
        SystemModstampValue = CkJsonObject_stringOf(jResp,"records[i].fields.Owner.value.fields.SystemModstamp.value");
        ValueId = CkJsonObject_stringOf(jResp,"records[i].fields.Owner.value.id");
        LastModifiedById = CkJsonObject_stringOf(jResp,"records[i].fields.Owner.value.lastModifiedById");
        LastModifiedDate = CkJsonObject_stringOf(jResp,"records[i].fields.Owner.value.lastModifiedDate");
        RecordTypeId = CkJsonObject_stringOf(jResp,"records[i].fields.Owner.value.recordTypeId");
        RecordTypeInfo = CkJsonObject_stringOf(jResp,"records[i].fields.Owner.value.recordTypeInfo");
        SystemModstamp = CkJsonObject_stringOf(jResp,"records[i].fields.Owner.value.systemModstamp");
        WeakEtag = CkJsonObject_IntOf(jResp,"records[i].fields.Owner.value.weakEtag");
        OwnerIdDisplayValue = CkJsonObject_stringOf(jResp,"records[i].fields.OwnerId.displayValue");
        OwnerIdValue = CkJsonObject_stringOf(jResp,"records[i].fields.OwnerId.value");
        PhoneDisplayValue = CkJsonObject_stringOf(jResp,"records[i].fields.Phone.displayValue");
        PhoneValue = CkJsonObject_stringOf(jResp,"records[i].fields.Phone.value");
        SiteDisplayValue = CkJsonObject_stringOf(jResp,"records[i].fields.Site.displayValue");
        SiteValue = CkJsonObject_stringOf(jResp,"records[i].fields.Site.value");
        SystemModstampDisplayValue = CkJsonObject_stringOf(jResp,"records[i].fields.SystemModstamp.displayValue");
        SystemModstampValue = CkJsonObject_stringOf(jResp,"records[i].fields.SystemModstamp.value");
        id = CkJsonObject_stringOf(jResp,"records[i].id");
        lastModifiedById = CkJsonObject_stringOf(jResp,"records[i].lastModifiedById");
        lastModifiedDate = CkJsonObject_stringOf(jResp,"records[i].lastModifiedDate");
        recordTypeId = CkJsonObject_stringOf(jResp,"records[i].recordTypeId");
        recordTypeInfo = CkJsonObject_stringOf(jResp,"records[i].recordTypeInfo");
        systemModstamp = CkJsonObject_stringOf(jResp,"records[i].systemModstamp");
        weakEtag = CkJsonObject_IntOf(jResp,"records[i].weakEtag");
        i = i + 1;
    }



    CkHttp_Dispose(http);
    CkStringBuilder_Dispose(sbResponseBody);
    CkJsonObject_Dispose(jResp);

    }

Curl Command

curl -X GET
	-H "Authorization: Bearer <access_token>"
https://domain.com/services/data/v{{version}}/ui-api/mru-list-records/:SOBJECT_API_NAME

Postman Collection Item JSON

{
  "name": "Get Most Recently Used List View Records",
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "exec": [
          ""
        ],
        "type": "text/javascript"
      }
    }
  ],
  "protocolProfileBehavior": {
    "disableBodyPruning": true
  },
  "request": {
    "method": "GET",
    "header": [
    ],
    "body": {
      "mode": "raw",
      "raw": "",
      "options": {
        "raw": {
          "language": "json"
        }
      }
    },
    "url": {
      "raw": "{{_endpoint}}/services/data/v{{version}}/ui-api/mru-list-records/:SOBJECT_API_NAME",
      "host": [
        "{{_endpoint}}"
      ],
      "path": [
        "services",
        "data",
        "v{{version}}",
        "ui-api",
        "mru-list-records",
        ":SOBJECT_API_NAME"
      ],
      "variable": [
        {
          "key": "SOBJECT_API_NAME",
          "value": "",
          "description": "Object API name"
        }
      ]
    },
    "description": "Returns record data for an object’s most recently used (MRU) list view."
  },
  "response": [
    {
      "name": "Get Most Recently Used List View Records",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "body": {
          "mode": "raw",
          "raw": "",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{_endpoint}}/services/data/v{{version}}/ui-api/mru-list-records/:SOBJECT_API_NAME",
          "host": [
            "{{_endpoint}}"
          ],
          "path": [
            "services",
            "data",
            "v{{version}}",
            "ui-api",
            "mru-list-records",
            ":SOBJECT_API_NAME"
          ],
          "variable": [
            {
              "key": "SOBJECT_API_NAME",
              "value": "Account",
              "description": "Object API name"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Date",
          "value": "Fri, 06 Oct 2023 09:59:22 GMT"
        },
        {
          "key": "Strict-Transport-Security",
          "value": "max-age=63072000; includeSubDomains"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        },
        {
          "key": "X-Robots-Tag",
          "value": "none"
        },
        {
          "key": "Cache-Control",
          "value": "no-cache,must-revalidate,max-age=0,no-store,private"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=UTF-8"
        },
        {
          "key": "Vary",
          "value": "Accept-Encoding"
        },
        {
          "key": "Content-Encoding",
          "value": "gzip"
        },
        {
          "key": "Transfer-Encoding",
          "value": "chunked"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"count\": 4,\n    \"currentPageToken\": \"0\",\n    \"currentPageUrl\": \"/services/data/v58.0/ui-api/mru-list-records/Account?pageSize=50&pageToken=0\",\n    \"fields\": [],\n    \"listInfoETag\": \"4c63719f66dbb57c7cb86c2effc5f08b\",\n    \"listReference\": {\n        \"id\": null,\n        \"listViewApiName\": null,\n        \"objectApiName\": \"Account\",\n        \"type\": \"mru\"\n    },\n    \"nextPageToken\": null,\n    \"nextPageUrl\": null,\n    \"optionalFields\": [],\n    \"pageSize\": 50,\n    \"previousPageToken\": null,\n    \"previousPageUrl\": null,\n    \"records\": [\n        {\n            \"apiName\": \"Account\",\n            \"childRelationships\": {},\n            \"eTag\": \"f7f6e483706369d93dc673d2afff3d4b\",\n            \"fields\": {\n                \"CreatedDate\": {\n                    \"displayValue\": \"09/05/2016 15:51\",\n                    \"value\": \"2016-05-09T13:51:39.000Z\"\n                },\n                \"Id\": {\n                    \"displayValue\": null,\n                    \"value\": \"00158000006QBOlAAO\"\n                },\n                \"LastModifiedById\": {\n                    \"displayValue\": null,\n                    \"value\": \"00558000000yFyDAAU\"\n                },\n                \"LastModifiedDate\": {\n                    \"displayValue\": \"06/10/2023 11:14\",\n                    \"value\": \"2023-10-06T09:14:04.000Z\"\n                },\n                \"Name\": {\n                    \"displayValue\": null,\n                    \"value\": \"United Oil &amp; Gas Corp.\"\n                },\n                \"Owner\": {\n                    \"displayValue\": \"Philippe Ozil\",\n                    \"value\": {\n                        \"apiName\": \"User\",\n                        \"childRelationships\": {},\n                        \"eTag\": \"a12d0b3adcc7691ad4ffd5dc82bd3276\",\n                        \"fields\": {\n                            \"Alias\": {\n                                \"displayValue\": null,\n                                \"value\": \"POzil\"\n                            },\n                            \"CreatedDate\": {\n                                \"displayValue\": \"09/05/2016 15:51\",\n                                \"value\": \"2016-05-09T13:51:39.000Z\"\n                            },\n                            \"Id\": {\n                                \"displayValue\": null,\n                                \"value\": \"00558000000yFyDAAU\"\n                            },\n                            \"LastModifiedById\": {\n                                \"displayValue\": null,\n                                \"value\": \"00558000000yFyDAAU\"\n                            },\n                            \"LastModifiedDate\": {\n                                \"displayValue\": \"06/10/2023 10:34\",\n                                \"value\": \"2023-10-06T08:34:22.000Z\"\n                            },\n                            \"Name\": {\n                                \"displayValue\": null,\n                                \"value\": \"Philippe Ozil\"\n                            },\n                            \"SystemModstamp\": {\n                                \"displayValue\": \"06/10/2023 10:34\",\n                                \"value\": \"2023-10-06T08:34:22.000Z\"\n                            }\n                        },\n                        \"id\": \"00558000000yFyDAAU\",\n                        \"lastModifiedById\": \"00558000000yFyDAAU\",\n                        \"lastModifiedDate\": \"2023-10-06T08:34:22.000Z\",\n                        \"recordTypeId\": null,\n                        \"recordTypeInfo\": null,\n                        \"systemModstamp\": \"2023-10-06T08:34:22.000Z\",\n                        \"weakEtag\": 1696581262000\n                    }\n                },\n                \"OwnerId\": {\n                    \"displayValue\": null,\n                    \"value\": \"00558000000yFyDAAU\"\n                },\n                \"Phone\": {\n                    \"displayValue\": null,\n                    \"value\": \"(212) 842-5500\"\n                },\n                \"Site\": {\n                    \"displayValue\": null,\n                    \"value\": null\n                },\n                \"SystemModstamp\": {\n                    \"displayValue\": \"06/10/2023 11:14\",\n                    \"value\": \"2023-10-06T09:14:04.000Z\"\n                }\n            },\n            \"id\": \"00158000006QBOlAAO\",\n            \"lastModifiedById\": \"00558000000yFyDAAU\",\n            \"lastModifiedDate\": \"2023-10-06T09:14:04.000Z\",\n            \"recordTypeId\": \"012000000000000AAA\",\n            \"recordTypeInfo\": null,\n            \"systemModstamp\": \"2023-10-06T09:14:04.000Z\",\n            \"weakEtag\": 1696583644000\n        },\n        {\n            \"apiName\": \"Account\",\n            \"childRelationships\": {},\n            \"eTag\": \"08edfcddd69a2afecdf0ebb41cb56796\",\n            \"fields\": {\n                \"CreatedDate\": {\n                    \"displayValue\": \"09/05/2016 15:51\",\n                    \"value\": \"2016-05-09T13:51:39.000Z\"\n                },\n                \"Id\": {\n                    \"displayValue\": null,\n                    \"value\": \"00158000006QBOiAAO\"\n                },\n                \"LastModifiedById\": {\n                    \"displayValue\": null,\n                    \"value\": \"00558000000yFyDAAU\"\n                },\n                \"LastModifiedDate\": {\n                    \"displayValue\": \"11/05/2016 10:48\",\n                    \"value\": \"2016-05-11T08:48:05.000Z\"\n                },\n                \"Name\": {\n                    \"displayValue\": null,\n                    \"value\": \"Pyramid Construction Inc.\"\n                },\n                \"Owner\": {\n                    \"displayValue\": \"Philippe Ozil\",\n                    \"value\": {\n                        \"apiName\": \"User\",\n                        \"childRelationships\": {},\n                        \"eTag\": \"a12d0b3adcc7691ad4ffd5dc82bd3276\",\n                        \"fields\": {\n                            \"Alias\": {\n                                \"displayValue\": null,\n                                \"value\": \"POzil\"\n                            },\n                            \"CreatedDate\": {\n                                \"displayValue\": \"09/05/2016 15:51\",\n                                \"value\": \"2016-05-09T13:51:39.000Z\"\n                            },\n                            \"Id\": {\n                                \"displayValue\": null,\n                                \"value\": \"00558000000yFyDAAU\"\n                            },\n                            \"LastModifiedById\": {\n                                \"displayValue\": null,\n                                \"value\": \"00558000000yFyDAAU\"\n                            },\n                            \"LastModifiedDate\": {\n                                \"displayValue\": \"06/10/2023 10:34\",\n                                \"value\": \"2023-10-06T08:34:22.000Z\"\n                            },\n                            \"Name\": {\n                                \"displayValue\": null,\n                                \"value\": \"Philippe Ozil\"\n                            },\n                            \"SystemModstamp\": {\n                                \"displayValue\": \"06/10/2023 10:34\",\n                                \"value\": \"2023-10-06T08:34:22.000Z\"\n                            }\n                        },\n                        \"id\": \"00558000000yFyDAAU\",\n                        \"lastModifiedById\": \"00558000000yFyDAAU\",\n                        \"lastModifiedDate\": \"2023-10-06T08:34:22.000Z\",\n                        \"recordTypeId\": null,\n                        \"recordTypeInfo\": null,\n                        \"systemModstamp\": \"2023-10-06T08:34:22.000Z\",\n                        \"weakEtag\": 1696581262000\n                    }\n                },\n                \"OwnerId\": {\n                    \"displayValue\": null,\n                    \"value\": \"00558000000yFyDAAU\"\n                },\n                \"Phone\": {\n                    \"displayValue\": null,\n                    \"value\": \"(014) 427-4427\"\n                },\n                \"Site\": {\n                    \"displayValue\": null,\n                    \"value\": null\n                },\n                \"SystemModstamp\": {\n                    \"displayValue\": \"11/05/2016 10:48\",\n                    \"value\": \"2016-05-11T08:48:05.000Z\"\n                }\n            },\n            \"id\": \"00158000006QBOiAAO\",\n            \"lastModifiedById\": \"00558000000yFyDAAU\",\n            \"lastModifiedDate\": \"2016-05-11T08:48:05.000Z\",\n            \"recordTypeId\": \"012000000000000AAA\",\n            \"recordTypeInfo\": null,\n            \"systemModstamp\": \"2016-05-11T08:48:05.000Z\",\n            \"weakEtag\": 1462956485000\n        },\n        {\n            \"apiName\": \"Account\",\n            \"childRelationships\": {},\n            \"eTag\": \"2e6480ff0176177161db7d13b49b6a70\",\n            \"fields\": {\n                \"CreatedDate\": {\n                    \"displayValue\": \"27/02/2020 10:28\",\n                    \"value\": \"2020-02-27T09:28:06.000Z\"\n                },\n                \"Id\": {\n                    \"displayValue\": null,\n                    \"value\": \"0014H00002LbR7QQAV\"\n                },\n                \"LastModifiedById\": {\n                    \"displayValue\": null,\n                    \"value\": \"00558000000yFyDAAU\"\n                },\n                \"LastModifiedDate\": {\n                    \"displayValue\": \"04/10/2023 20:35\",\n                    \"value\": \"2023-10-04T18:35:13.000Z\"\n                },\n                \"Name\": {\n                    \"displayValue\": null,\n                    \"value\": \"ABC Computing\"\n                },\n                \"Owner\": {\n                    \"displayValue\": \"Philippe Ozil\",\n                    \"value\": {\n                        \"apiName\": \"User\",\n                        \"childRelationships\": {},\n                        \"eTag\": \"a12d0b3adcc7691ad4ffd5dc82bd3276\",\n                        \"fields\": {\n                            \"Alias\": {\n                                \"displayValue\": null,\n                                \"value\": \"POzil\"\n                            },\n                            \"CreatedDate\": {\n                                \"displayValue\": \"09/05/2016 15:51\",\n                                \"value\": \"2016-05-09T13:51:39.000Z\"\n                            },\n                            \"Id\": {\n                                \"displayValue\": null,\n                                \"value\": \"00558000000yFyDAAU\"\n                            },\n                            \"LastModifiedById\": {\n                                \"displayValue\": null,\n                                \"value\": \"00558000000yFyDAAU\"\n                            },\n                            \"LastModifiedDate\": {\n                                \"displayValue\": \"06/10/2023 10:34\",\n                                \"value\": \"2023-10-06T08:34:22.000Z\"\n                            },\n                            \"Name\": {\n                                \"displayValue\": null,\n                                \"value\": \"Philippe Ozil\"\n                            },\n                            \"SystemModstamp\": {\n                                \"displayValue\": \"06/10/2023 10:34\",\n                                \"value\": \"2023-10-06T08:34:22.000Z\"\n                            }\n                        },\n                        \"id\": \"00558000000yFyDAAU\",\n                        \"lastModifiedById\": \"00558000000yFyDAAU\",\n                        \"lastModifiedDate\": \"2023-10-06T08:34:22.000Z\",\n                        \"recordTypeId\": null,\n                        \"recordTypeInfo\": null,\n                        \"systemModstamp\": \"2023-10-06T08:34:22.000Z\",\n                        \"weakEtag\": 1696581262000\n                    }\n                },\n                \"OwnerId\": {\n                    \"displayValue\": null,\n                    \"value\": \"00558000000yFyDAAU\"\n                },\n                \"Phone\": {\n                    \"displayValue\": null,\n                    \"value\": \"123123123\"\n                },\n                \"Site\": {\n                    \"displayValue\": null,\n                    \"value\": null\n                },\n                \"SystemModstamp\": {\n                    \"displayValue\": \"04/10/2023 20:35\",\n                    \"value\": \"2023-10-04T18:35:13.000Z\"\n                }\n            },\n            \"id\": \"0014H00002LbR7QQAV\",\n            \"lastModifiedById\": \"00558000000yFyDAAU\",\n            \"lastModifiedDate\": \"2023-10-04T18:35:13.000Z\",\n            \"recordTypeId\": \"012000000000000AAA\",\n            \"recordTypeInfo\": null,\n            \"systemModstamp\": \"2023-10-04T18:35:13.000Z\",\n            \"weakEtag\": 1696444513000\n        },\n        {\n            \"apiName\": \"Account\",\n            \"childRelationships\": {},\n            \"eTag\": \"5577bcfb6590f3f00dfa044865276944\",\n            \"fields\": {\n                \"CreatedDate\": {\n                    \"displayValue\": \"14/09/2023 00:04\",\n                    \"value\": \"2023-09-13T22:04:24.000Z\"\n                },\n                \"Id\": {\n                    \"displayValue\": null,\n                    \"value\": \"0014H00004GXwPnQAL\"\n                },\n                \"LastModifiedById\": {\n                    \"displayValue\": null,\n                    \"value\": \"00558000000yFyDAAU\"\n                },\n                \"LastModifiedDate\": {\n                    \"displayValue\": \"14/09/2023 00:04\",\n                    \"value\": \"2023-09-13T22:04:24.000Z\"\n                },\n                \"Name\": {\n                    \"displayValue\": null,\n                    \"value\": \"test\"\n                },\n                \"Owner\": {\n                    \"displayValue\": \"Philippe Ozil\",\n                    \"value\": {\n                        \"apiName\": \"User\",\n                        \"childRelationships\": {},\n                        \"eTag\": \"a12d0b3adcc7691ad4ffd5dc82bd3276\",\n                        \"fields\": {\n                            \"Alias\": {\n                                \"displayValue\": null,\n                                \"value\": \"POzil\"\n                            },\n                            \"CreatedDate\": {\n                                \"displayValue\": \"09/05/2016 15:51\",\n                                \"value\": \"2016-05-09T13:51:39.000Z\"\n                            },\n                            \"Id\": {\n                                \"displayValue\": null,\n                                \"value\": \"00558000000yFyDAAU\"\n                            },\n                            \"LastModifiedById\": {\n                                \"displayValue\": null,\n                                \"value\": \"00558000000yFyDAAU\"\n                            },\n                            \"LastModifiedDate\": {\n                                \"displayValue\": \"06/10/2023 10:34\",\n                                \"value\": \"2023-10-06T08:34:22.000Z\"\n                            },\n                            \"Name\": {\n                                \"displayValue\": null,\n                                \"value\": \"Philippe Ozil\"\n                            },\n                            \"SystemModstamp\": {\n                                \"displayValue\": \"06/10/2023 10:34\",\n                                \"value\": \"2023-10-06T08:34:22.000Z\"\n                            }\n                        },\n                        \"id\": \"00558000000yFyDAAU\",\n                        \"lastModifiedById\": \"00558000000yFyDAAU\",\n                        \"lastModifiedDate\": \"2023-10-06T08:34:22.000Z\",\n                        \"recordTypeId\": null,\n                        \"recordTypeInfo\": null,\n                        \"systemModstamp\": \"2023-10-06T08:34:22.000Z\",\n                        \"weakEtag\": 1696581262000\n                    }\n                },\n                \"OwnerId\": {\n                    \"displayValue\": null,\n                    \"value\": \"00558000000yFyDAAU\"\n                },\n                \"Phone\": {\n                    \"displayValue\": null,\n                    \"value\": null\n                },\n                \"Site\": {\n                    \"displayValue\": null,\n                    \"value\": null\n                },\n                \"SystemModstamp\": {\n                    \"displayValue\": \"14/09/2023 00:04\",\n                    \"value\": \"2023-09-13T22:04:24.000Z\"\n                }\n            },\n            \"id\": \"0014H00004GXwPnQAL\",\n            \"lastModifiedById\": \"00558000000yFyDAAU\",\n            \"lastModifiedDate\": \"2023-09-13T22:04:24.000Z\",\n            \"recordTypeId\": \"012000000000000AAA\",\n            \"recordTypeInfo\": null,\n            \"systemModstamp\": \"2023-09-13T22:04:24.000Z\",\n            \"weakEtag\": 1694642664000\n        }\n    ],\n    \"sortBy\": null\n}"
    }
  ]
}