Add record in Zoho Recruit
Table of ContentsUp
Note:
- Each time the zoho.recruit.addRecord task integration task is executed, it triggers an API request in the back-end. This call is deducted from the external calls limit available for the service from which the task is executed, based on your pricing plan.
- Only actual executions that receive a response (whether success or failure) are counted, not the number of times the task appears in the script. For example, if zoho.recruit.addRecord task integration task is placed inside a for each task that iterates five times, the number of external calls consumed will be five, even though the task appears only once in the script.
Overview
The zoho.recruit.addRecord task is used to create records in Zoho Recruit. This task is based on the Zoho Recruit API - Add records.
Syntax
<variable> = zoho.recruit.addRecord(<module_name>, <data_map>, <duplicate_check>, <workflow_trigger>, <connection>);
where,
| Parameter | Data type | Description |
| <response> | KEY-VALUE | Response returned by Zoho Recruit. |
| <module_name> | TEXT | Name of the module in which the record will be created. Following are the applicable modules:
|
| <data_map> | KEY-VALUE | Fields and their values to create the record with the required data. Note: Keys and values should be specified as given in the Zoho Recruit API. |
| <duplicate_check> | NUMBER |
|
| <workflow_trigger> | BOOLEAN |
|
| <connection> | TEXT | The link name of the Zoho Recruit connection. Note:
|
Create a record in Candidates module
The following script creates a record in the "Candidates" module in Zoho Recruit.
candidatesMap = Map(); candidatesMap.put("Last name","Richard"); candidatesMap.put("Email","richard@zoho.com"); candidatesMap.put("Mobile","+91 998877665"); candidatesMap.put("Experience in years","5"); candidatesMap.put("Current Job Title","Assistant Manager"); candidatesMap.put("Skill Set","MCA"); candidatesMap.put("Experience Details","Working in UTS for 5 years"); response= zoho.recruit.addRecord("Candidates", candidatesMap, 0, false, "recruit_connection");
where:
candidatesMap
"Last name" "Email" "Mobile" "Experience in years" "Current Job Title" "Skill Set" "Experience Details"
"Richard" "richard@zoho.com" "+91 9988776655" "Assistant Manager" "MCA" "Working in UTS for 5 years"
"Candidates"
0
false
"recruit_connection"
Sample Response
The following is a sample success response:
{
"message":"Record(s) added successfully",
"Created Time":"2015-11-19 18:04:55",
"Modified By”:”john”,”Id":"1687000000116001",
"Modified Time":"2015-11-19 18:04:55",
" Created By”:”john”
}
To get the ID of the newly created record, execute the following script:
The failure response returned, when mandatory params are not specified, is of the following format:
{
"message" :" Unable to populate data, please check if mandatory value is entered correctly.",
"code":"4401"
}