I'm writing a script to create a call activity from the potentials module. The call should be scheduled for a future date. This works when creating tasks, but not calls for some reason. Any idea what I'mm doing wrong?
Here's my code:
contactID=[contact ID number];
dealID=[potential ID number];
callsubject="test make call";
callownerID=zoho.adminuserid;
contactName=[Contact Name];
callmp=map();
callmp.put("Subject",callsubject);
callmp.put("Call Type","Outbound");
callmp.put("Call Purpose","Prospecting");
callmp.put("CONTACTID",contactID);
callmp.put("Contact Name",contactName);
callmp.put("RELATEDTOID",input.dealID);
callmp.put("SEID",input.dealID);
callmp.put("SEMODULE","Potentials");
callmp.put("Call Details","Schedule Call");
callmp.put("Call Status","Scheduled");
callmp.put("Call Start Time",zoho.currenttime.addDay(14));
callmp.put("SMOWNERID",callownerID);
createcall = zoho.crm.create("Calls",tskmp,2);
newcallID=createcall.get("Id");
info newcallID;