Update records in Zoho Recruit
Table of Contents
Overview
The zoho.recruit.updateRecord is used to update a record in Zoho Recruit. This task is based on the Zoho Recruit API - Update Record.
Syntax
<variable> = zoho.recruit.updateRecord(<module_name>, <record_ID>, <data_map>, <workflow_trigger>, <connection>);
where:
Parameter | Data type | Description |
<variable> | KEY-VALUE | variable which will hold the response returned by Zoho Recruit. |
<module_name> | TEXT | module in which the record will be updated. Applicable modules:
|
<record_ID> | NUMBER | ID of the record which will be updated. Learn how to fetch the ID of a record after creating, searching it or fetching it. |
<data_map> | KEY-VALUE | keys and values to update the record with the new data. Note: Field names (keys) should be specified as given in the Zoho Recruit API. |
<workflow_trigger> | BOOLEAN |
|
<connection> | TEXT | The link name of the Zoho Recruit connection. Note:
|
Update a record in Candidates module
The following script updates a record in the "Candidates" module in Zoho Recruit.
candidatesMap = Map(); candidatesMap.put("Email","john@zylker.com"); response= zoho.recruit.updateRecord("Candidates", 3342000000267001, candidatesMap, false, "recruit_connection");
where:
candidatesMap
"Email"
"john@zylker.com"
"Candidates"
false
"recruit_connection"
The success response returned is of the following format:
{
"Is Locked":"false",
"Candidate ID":"ZR_23_CAND",
"CANDIDATEID":"1687000000106001",
"Is Unqualified":"false",
"Updated On":"2015-08-05 18:41:34",
"Created By":"dinesh.d",
"Is Attachment Present":"true",
"Source":"Resume",
"MODIFIEDBY":"1687000000077003",
"Created Time":"2015-08-05 18:41:34",
"Modified By":"dinesh.d",
"SMOWNERID":"1687000000077003",
"Candidate Status":"New",
"Last Activity Time":"2015-08-05 18:41:34",
"SMCREATORID":"1687000000077003",
"Email Opt Out":"false",
"Is Hot Candidate":"false",
"Last Name":"No name",
"Experience in Years":"0",
"Candidate Owner":"dinesh.d"
}