Get Records from Zoho CRM

Get Records from Zoho CRM


Zoho Creator and Zoho CRM have been integrated for efficient usability purposes. We have developed tasks in Zoho Creator to perform automatic actions in Zoho CRM, which would otherwise require manual execution. For example, you can fetch records from Zoho CRM and have them populated in Zoho Creator Form fields for further actions. Records can be fetched from multiple supported modules of Zoho CRM at the same time. This can be achieved using zoho.crm.getRecords() task in Zoho Creator.

Use Case Scenario

Let's say we need to populate a Zoho Creator Form with the last names of certain customers, already stored in Zoho CRM's Contacts module. In this case, records can be fetched from the Contacts module and the Last Name parameter can be extracted to be populated in the Form field. Further details on how to execute this task are explained below.


<response>=zoho.crm.getRecords(<module_name>,[<page>],[<per_page>], {<optional_data_map>},<connections>);


Params Description


is the response returned as LIST by Zoho CRM.


is the API name of the CRM module, of STRING datatype, from where the records will be fetched. Following is the list of supported modules.















To get the list of records based on pages. It is of the NUMBER datatype. Default - 1.



Used to get the list of records available per page. It is of the NUMBER datatype. Default - 200.


Used to get the list of records using params other than page and per_page.


Displays the connectors associated with the function. Datatype is STRING.

Example 1: Fetch Customer Names from Contacts

Let's assume we have a Zoho Creator Form with Customer Name field to store Customer names. Records can be fetched from Zoho CRM Contact's Module by adding the script shown below in the required workflow section:


The Customer Name of each fetched Contact can then be extracted and populated within the Form field using the ui.add() task. This can be achieved by adding the following script in the required Form Actions block:

for each ContactRecord in contactslist{Customer_Name:ui.add(ContactRecord.get("Last_Name"));}


is the response returned asmapby Zoho CRM. It holds the records fetched from Zoho CRM’s
Contacts module. Check sample response here.
refers to the Contacts module, of string datatype, in Zoho CRM.
stands for each unique record fetched from Zoho CRM's Contacts module.
is the Form field which gets populated with customers' Names.

Example 2: Fetch Invoices and their Products

Let's assume we have a Zoho Creator Form with the following fields:

  • Subject (Single Line field type)
  • Invoice Date (Date field type)
  • Invoice Number (Number field type)
  • Product Name (Single Line field type)
  • Quantity (Number field type)
  • Unit Price (Currency field type)

To fetch records from Invoices module add the following script in the required workflow section:



is the response returned, ofmapdatatype, from Zoho CRM.
refers to the Invoices module, ofstringdatatype, in Zoho CRM.

Once the records are fetched, they can be iterated to extract the field values from each record which can be then assigned to respective form fields.

Example 3: Fetch data from a Custom Module

Let's say we have an email field in a Zoho Creator Form. To fetch an email address value for it from a Zoho CRM Custom Module, you can first fetch all the records from the Custom Module. The fetched records can then be iterated, as explained in example 1, to extract the email value of each record. To fetch records from a Custom Module, add the following script in the required workflow section:



is the response returned asmapby Zoho CRM. It holds the records fetched from Zoho
CRM’s Custom Module. Check sample response here.
is the API name of the custom module.

Response Format

The response returned is of the following format:

   "Phone":"+1 678 904 1854",

   "Country":"United States",



CRM Tasks can be executed only in accounts which are under Flexible and Unlimited Plans. If you are under the Free Plan, kindly upgrade to use CRM tasks. For more details scroll down to Integration and Web Data on the pricing page.

Script Builder

You can also make use of the Script Builder to define the zoho.crm.getRecords() task. Navigate to your application’s Workflow, and drag and drop the Call Function under Deluge Tasks > Miscellaneous. Select Integration tasks and fill out necessary information.

Related Links

  • To fetch the string value to which the specified key is mapped, use get()
  • To get values from fetched records, use getJSON()
  • To convert the json string to list format, use toJSONList().

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: