I can help you.
Invoke the id to download the file. file.ics
[]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
hiring_form_3 = zoho.recruit.getRecordById("CustomModule4",id,"all");
// info hiring_form_3 ;
endDate = hiring_form_3.getJSON("Schedule Interview");
startDate = zoho.currenttime.addMinutes(10);
candidatelookupid = hiring_form_3.getJSON("Candidate Name_ID");
candiateSelected = zoho.recruit.getRecordById("Candidates",candidatelookupid,"all");
email = candiateSelected.get("Email");
job = invokeurl
[
type :GET
connection:"all"
];
// info job ;
data = job.getJSON("data");
job_opening = data.getJSON("Job_Opening_Name");
//info "job_openingID==" + job_opening;
Department_Name = data.getJSON("Department_Name").getJSON("name");
mp = Map();
mp.put("Interview Name","General Interview");
mp.put("Posting Title",job_opening);
mp.put("Department Name",Department_Name);
mp.put("Start DateTime",startDate);
mp.put("Interviewer(s)","Kavitha Divakar");
mp.put("End DateTime",endDate);
mp.put("CANDIDATEID",candidatelookupid);
rec = zoho.recruit.addRecord("Interviews",mp,0,TRUE,"all");
//info rec ;
interviewID = rec.getJSON("Id");
//info interviewID ;
ics = invokeurl
[
type :GET
connection:"all"
];
//info ics ;
allData = ics.getJSON("data");
file_Name = allData.getJSON("id");
//info allData ;
downloadICS = invokeurl
[
type :GET
connection:"all"
];
info downloadICS;
sendmail
[
from :zoho.adminuserid
to :email
subject :"ONEDVS Interview"
message :"<div>Dear Candidate Join The Interview</div>"
Attachments :file:downloadICS
]