Get record by ID from Zoho Creator v2.1

Note: This task is applicable to all services except Zoho Creator.

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.

Note: This integration task is based on the Zoho Creator - Get Records API.

Syntax

<response> = zoho.creator.v2_1.getRecordById(<owner_name>, <app_link_name>, <report_link_name>, <configuration>, <connection>);

where:

ParametersData typeDescription
<response>KEY-VALUE

The response returned by the task is similar to the Zoho Creator API response. This includes:

  • code - Status code of the operation

  • message - Success or error message

  • data - Details of the fetched record
<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:

  • URL of the application while editing or accessing it. The URL is in the format: app.zohocreator.com/appbuilder/<application_owner>/...
  • Using the system variable - zoho.adminuser
<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:

  • URL of the application while editing or accessing it. The URL is in the format: app.zohocreator.com/appbuilder/<application_owner>/<application_name>/...
  • Using the system variable - zoho.appname
<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:

  • Add relevant scopes as mentioned in Zoho Creator Add Records API document while creating the connection.
  • Refer to this post for the list of Zoho services that support the connections page.
  • Learn more about connections

Optional parameters for <configuration>)

The following keys can be included within the parameter in the getRecords task. These options allow you to filter, limit, or customize the records retrieved from the report.

ValueData typeDescription
environmentTEXT

Specifies the environment where the record should be created. Accepted values: "development" or "stage".
This parameter is not required for the production environment.

Note: The value is case-sensitive and should be used as such.

field_configTEXT

Determines which fields are included in the response:

  • "detail_view" - fetches only the fields included in the detailed view layout.
  • "quick_view" - fetches only the fields included in the quick view layout.
  • "custom" - fetches only the specified fields.
  • "all" - fetches the fields included both in the detailed view and quick view layout.

Default value: quick_view

fieldsTEXTComma-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 parameters
otherParams = Map();
otherParams.put("environment", "development");
otherParams.put("fields", "Task_Name,Task_Description,Priority");
otherParams.put("field_config", "custom");

// Write update record integration task
response = 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
{ "code": 2892,
"message": "No application named found. Please check and try again." }
  • The failure response for incorrect owner name will be returned in the following format
{ "code": 1110, "message": "No workspace named found. Please enter a valid workspace value." }
  • The failure response for incorrect or non-existent report name will be returned in the following format
{ "code": 2894, "message": "No report named found. Please check and try again."
}

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

Related Links