Delphi (DLL) / Support API / Show Many Custom Object Records
Back to Collection Items
var
begin
CkHttp_putBasicAuth(http,True);CkHttp_putLogin(http,'login');CkHttp_putPassword(http,'password');CkJsonObject_UpdateString(queryParams,'ids','<string>');CkJsonObject_UpdateString(queryParams,'ids','<string>');CkHttpResponse_GetBodySb(resp,sbResponseBody);CkJsonObject_LoadSb(jResp,sbResponseBody);CkJsonObject_putEmitCompact(jResp,False);CkJsonObject_putI(jResp,i);name := CkJsonObject__stringOf(jResp,'custom_object_records[i].name');created_at := CkJsonObject__stringOf(jResp,'custom_object_records[i].created_at');created_by_user_id := CkJsonObject__stringOf(jResp,'custom_object_records[i].created_by_user_id');Voluptate571 := CkJsonObject__stringOf(jResp,'custom_object_records[i].custom_object_fields.voluptate571');Aute_e := CkJsonObject__stringOf(jResp,'custom_object_records[i].custom_object_fields.aute_e');Nostrud_6f := CkJsonObject__stringOf(jResp,'custom_object_records[i].custom_object_fields.nostrud_6f');custom_object_key := CkJsonObject__stringOf(jResp,'custom_object_records[i].custom_object_key');external_id := CkJsonObject__stringOf(jResp,'custom_object_records[i].external_id');id := CkJsonObject__stringOf(jResp,'custom_object_records[i].id');updated_at := CkJsonObject__stringOf(jResp,'custom_object_records[i].updated_at');updated_by_user_id := CkJsonObject__stringOf(jResp,'custom_object_records[i].updated_by_user_id');url := CkJsonObject__stringOf(jResp,'custom_object_records[i].url');Eu4 := CkJsonObject__stringOf(jResp,'custom_object_records[i].custom_object_fields.eu4');i := i + 1;
Curl Command
curl -u login:password -G -d "ids=%3Cstring%3E"
-d "ids=%3Cstring%3E"
-H "Accept: application/json"
https://example.zendesk.com/api/v2/custom_objects/:custom_object_key/records/show_many
Postman Collection Item JSON
{
"name": "Show Many Custom Object Records",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/api/v2/custom_objects/:custom_object_key/records/show_many?ids=<string>&ids=<string>",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v2",
"custom_objects",
":custom_object_key",
"records",
"show_many"
],
"query": [
{
"key": "ids",
"value": "<string>",
"description": "(Required) Array of ids to retieve"
},
{
"key": "ids",
"value": "<string>",
"description": "(Required) Array of ids to retieve"
}
],
"variable": [
{
"key": "custom_object_key",
"value": "<string>"
}
]
},
"description": "List multiple custom object records by their ids\n#### Allowed For\n* Everyone"
},
"response": [
{
"name": "Success response",
"originalRequest": {
"method": "GET",
"header": [
{
"description": "Added as a part of security scheme: basic",
"key": "Authorization",
"value": "Basic <credentials>"
}
],
"url": {
"raw": "{{baseUrl}}/api/v2/custom_objects/:custom_object_key/records/show_many?ids=<string>",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v2",
"custom_objects",
":custom_object_key",
"records",
"show_many"
],
"query": [
{
"key": "ids",
"value": "<string>",
"description": "(Required) Array of ids to retieve"
}
],
"variable": [
{
"key": "custom_object_key"
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"count\": \"<integer>\",\n \"custom_object_records\": [\n {\n \"name\": \"<string>\",\n \"created_at\": \"<dateTime>\",\n \"created_by_user_id\": \"<string>\",\n \"custom_object_fields\": {\n \"voluptate571\": \"<string>\",\n \"aute_e\": \"<string>\",\n \"nostrud_6f\": \"<string>\"\n },\n \"custom_object_key\": \"<string>\",\n \"external_id\": \"<string>\",\n \"id\": \"<string>\",\n \"updated_at\": \"<dateTime>\",\n \"updated_by_user_id\": \"<string>\",\n \"url\": \"<string>\"\n },\n {\n \"name\": \"<string>\",\n \"created_at\": \"<dateTime>\",\n \"created_by_user_id\": \"<string>\",\n \"custom_object_fields\": {\n \"eu4\": \"<string>\"\n },\n \"custom_object_key\": \"<string>\",\n \"external_id\": \"<string>\",\n \"id\": \"<string>\",\n \"updated_at\": \"<dateTime>\",\n \"updated_by_user_id\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"next_page\": \"<string>\",\n \"previous_page\": \"<string>\"\n}"
}
]
}