Get record by ID from Zoho Creator v2.1
Table of Contents
Note:
- This task is applicable to all services except Zoho Creator.
- Each time the zoho.creator.v2_1.getRecords integration task is executed, it triggers an API request in the back-end. This call is deducted from the external calls limit available for the service from which the task is executed, based on your pricing plan.
- Only actual executions that receive a response (whether success or failure) are counted, not the number of times the task appears in the script. For example, if zoho.creator.v2_1.getRecords integration task is placed inside a for each task that iterates five times, the number of external calls consumed will be five, even though the task appears only once in the script.
Overview
The zoho.creator.v2_1.getRecords task retrieves one or more records from a specified report in a Zoho Creator application, based on the given input parameters and configuration.
Syntax
<response>=zoho.creator.v2_1.getRecordById(<owner_name>,<app_link_name>,<report_link_name>,<configuration>,<connection>);
where:
| Parameters | Data type | Description |
| <response> | KEY-VALUE | The response returned by the task is similar to the Zoho Creator API response. This includes:
|
| <owner_name> | TEXT | Specifies the owner of the Zoho Creator application where the record exists. Note: Name of the application owner can be fetched in the following ways:
|
| <app_link_name> | TEXT | Link name of the application containing the record. Note: Link name of the application can be fetched in the following ways:
|
| <report_link_name> | TEXT | Link name of the report from which the record needs to be fetched. Note: You can fetch link names from the URL while accessing the report. The URL is in the format: app.zohocreator.com/appbuilder/<application_owner>/<application_name>/#Report:<report_link_name> |
<record_id> | TEXT | ID of the record that needs to be fetched. |
| <configuration> | KEY-VALUE | Optional parameters that are specified in Zoho Creator Get Record By ID API document. Note: To skip this parameter, provide an empty map as its value. Example: configuration = Map(); |
| <connection> | TEXT | Link name of the connection created and connected to your Zoho Creator account. Note:
|
Optional parameters for <configuration>)
The following keys can be included within the
| Value | Data type | Description |
| environment | TEXT | Specifies the environment where the record should be created. Accepted values: "development" or "stage". Note: The value is case-sensitive and should be used as such. |
| field_config | TEXT | Determines which fields are included in the response:
Default value: quick_view |
| fields | TEXT | Comma-separated list of the required field link names to fetch when field_config is provided. |
Example
A company uses a Zoho Creator application named Task Management to manage internal tasks raised by customers. The team needs to view all tasks stored in the All_Tasks report for review. To do this, they use the following script, which fetches up to 200 records from the development environment, including only the Task_Name and Task_Description fields.
// Create an empty KEY-VALUE variable to skip optional parametersotherParams=Map();otherParams.put("environment","development");otherParams.put("fields","Task_Name,Task_Description,Priority");otherParams.put("field_config","custom");// Write update record integration taskresponse=zoho.creator.v2_1.getRecordById("Shawn","Task_Management","All_Tasks",60210000000020007,otherParams,"creator_oauth_connection");
Response Format
Success Response
- The success response will be returned in the following format:
"response": {
"code": 3000,
"data": [
{
"Task_Name": "Priority Task",
"Task_Description": "I need help installing my air conditioner",
"ID": "3605445000000075003"
},
{
"Task_Name": "Support Ticket1",
"Task_Description": "Toaster Configurations",
"ID": "3605445000000065010"
}
]
}
}
Failure Response
- The failure response for incorrect or non-existent application name will be returned in the following format
"message": "No application named
- The failure response for incorrect owner name will be returned in the following format
- The failure response for incorrect or non-existent report name will be returned in the following format
}
Things to Know
This task is subject to the general API limits and data validation rules:
- You can fetch up to 1000 records per request.
- A maximum of 50 requests per minute is allowed per IP address.
- Field-level restrictions apply (for example, you cannot set values for system fields such as Auto Number, Formula, File Upload, Signature, etc.).
- All form validation rules, mandatory fields, and data type constraints still apply when records are created via the API.
For a full list of limits and supported field types, refer to Zoho Creator API v2.1