Get Records By ID from Zoho Desk

Table of ContentsDown

Overview

The zoho.support.getRecordById() task is used to fetch records from any of the supported modules in your Zoho Desk account, by specifying the unique ID of the record. For example, you can get the details of a contact from the Contacts module in Zoho Desk by specifying the ID of the record.

Supported Modules

  • Requests
  • Accounts
  • Contacts
  • Contracts

Syntax

<response>=zoho.support.getRecordById(<moduleName>,<portal>,<department>,<recordID>);

where,
<response>is the map variable returned as response.
<moduleName>is the name of the Zoho Desk Module from where the record needs to be fetched. For example, "Requests" refers to the Requests module. The Zoho Desk modules that are supported by Creator are "Requests", "Accounts", "Contacts" and "Contracts".
<portal>is the name of the Zoho Desk Portal

<deptartment> refers to the department name in the portal from where the records need to be fetched.

<recordId> is the Id in Zoho Desk based on which the record related to the ID is fetched.

Example

response = zoho.support.getRecordById("Accounts", "zohotest", "database", "9000000001");

where,
response is the map variable returned as reponse.
Accounts is the name of the Zoho Desk Module from where the records need to be fetched.
zohotest is the name of the Zoho Desk Portal

database refers to the department in the portal where the records need to be fetched.

Response Format

The response returned by Zoho Desk will be in the format given below:

resp = {"Phone":"1 888 900 9646","Email":"sample@organization.com","Website":"https://www.orgsite.com/","Account Name":"Sample","ACCOUNTID":"1111111111111111"}

Share this post : FacebookTwitter