Deluge Help

Fetch Records from Zoho Recruit by specifying record id

 Overview

The zoho.recruit.getRecordbyId() task can be executed to retrieve an existing record from any of the supported modules of Zoho Recruit by specifying the record ID. By placing it in the required workflow section of Zoho Creator, the process of retrieving records from Zoho Recruit can easily be automated as per requirement. Lets say you have a Zoho Creator form where you need to retrieve a particular record from Zoho Recruit for further action. You can execute zoho.recruit.getRecordbyId() task in the required workflow section which will return the response containing the record. Further details on how to execute this task are explained below.

 Supported Modules

  • Candidates
  • Job Openings
  • Clients
  • Client Contacts

 Syntax

response = zoho.recruit.getRecordById(moduleName, id)

where,
<response> - is the map variable returned by Zoho Recruit as response.
<moduleName> - name of module in Zoho Recruit from where the records will be fetched. (mandatory)
<id> - ID of the record that needs to be fetched. (mandatory)

 Example

Following is a sample script that can be added in a Zoho Creator form to retrieve an existing record from Zoho Recruit based on the record ID. Let's say we have a Creator form where we need to fetch a particular record from Zoho Recruit. You can add the following script in required workflow section of the Creator Form so that whenever this form is loaded, edited or submitted etc, the specified record existing in Zoho Recruit's specified module is retrieved accordingly. In this case, the module is "Candidates". When the following script gets executed, the specified record from Zoho Recruit is fetched as per the specified record ID.

response = zoho.recruit.getRecordsbyId("Candidates", "1687000000106001");

where,
response - is the map variable returned by Zoho Recruit as response.
Candidates - name of module in Zoho Recruit where the record will be added.
1687000000106001 is the ID of the record that needs to be fetched.

 Response

Response returned by Zoho Recruit as map:

{"Is Locked":"false","Candidate ID":"ZR_26_CAND","CANDIDATEID":"1687000000106001","Is Unqualified":"false","Updated On":"2015-11-19 18:09:28","Created By":"deepika.p","Is Attachment Present":"true","Source":"Added by User","MODIFIEDBY":"1687000000077003","Created Time":"2015-09-16 16:29:33","Modified By":"deepika.p","SMOWNERID":"1687000000077003","Candidate Status":"New","Last Activity Time":"2015-11-19 18:09:28","SMCREATORID":"1687000000077003","Email Opt Out":"false","Is Hot Candidate":"false","Last Name":"Tom & Jerry","Candidate Owner":"john"}

Share this post : FacebookTwitter

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

Write to us: support@zohocreator.com