Fetch Records from Zoho Recruit by specifying record id
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 form actions block 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 form actions block which will return the response containing the record. Further details on how to execute this task are explained below.
- Job Openings
- Client Contacts
<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)
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 form actions block 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 - 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 returned by Zoho Recruit as map: