Create connection ="all"
scope:-
ZohoRecruit.modules.ALL
ZohoRecruit.modules.READ
ZohoRecruit.modules.CREATE
ZohoRecruit.modules.UPDATE
ZohoRecruit.bulk.ALL
ZohoRecruit.modules.application.ALL
ZohoRecruit.modules.assessment_submission.ALL
ZohoRecruit.modules.assessment.ALL
ZohoRecruit.modules.offers.ALL
ZohoRecruit.modules.note.ALL
ZohoRecruit.modules.department.ALL
ZohoRecruit.modules.interview.ALL
ZohoRecruit.modules.jobopening.ALL
ZohoRecruit.modules.candidate.ALL
condition is if exper is greater than or equal to
4 the create a interview
copy here
condidate = zoho.recruit.getRecordById("Candidates",id,"all");
// 62102000000508002
interview = zoho.recruit.getRecordById("Interviews",62102000000511032,"all");
// info interview;
// info condidate;
Experience_in_Years = condidate.getJSON("Experience in Years").toNumber();
info Experience_in_Years;
Last_Name = condidate.get("CANDIDATEID");
mp = Map();
mp.put("Interview Name","General Interview");
mp.put("Posting Title","Software Dev");
mp.put("Department Name","Developer");
mp.put("Start DateTime","2023-03-21 12:00:00");
mp.put("Interviewer(s)","Kavitha Divakar");
mp.put("End DateTime","2023-03-21 13:00:00");
mp.put("CANDIDATEID",Last_Name);
if(Experience_in_Years >= 4)
{
interview = zoho.recruit.addRecord("Interviews",mp,0,true,"all");
// interview=zoho.recruit.getRecordById("Interviews", 62102000000511032,"all");
info interview;
}
interview created
{
"DEPARTMENTID": "62102000000506125",
"SMCREATORID": "62102000000214514",
"Interview Owner": "Divakar Vijayasarathy",
"SMOWNERID": "62102000000214514",
"Modified By": "Divakar Vijayasarathy",
"Department Name": "Developer",
"Candidate Name": "bhavna saini",
"INTERVIEWERID": "62102000000228003",
"End DateTime": "2023-03-21 19:00:00",
"INTERVIEWID": "62102000000511032",
"Start DateTime": "2023-03-21 18:00:00",
"REVIEWEDBY": "null",
"Reminder": "5 minutes before",
"Venue": "helios",
"MODIFIEDBY": "62102000000214514",
"Is Attachment Present": "false",
"Interview Name": "General Interview",
"Posting Title": "Software Dev",
"CANDIDATEID": "62102000000505007",
"Modified Time": "2023-03-21 15:10:36",
"Is Locked": "false",
"Schedule Comments": "hh",
"Created Time": "2023-03-21 15:10:36",
"VideoInterview Stage": "None",
"Interviewer(s)": "Kavitha Divakar",
"Last Activity Time": "2023-03-21 15:10:36",
"Created By": "Divakar Vijayasarathy",
"JOBOPENINGID": "62102000000506131"
}
- Get link
- X
- Other Apps
Labels
Website Theme zoho help- Get link
- X
- Other Apps
Comments
Post a Comment