Hello all,
I'm creating a wizard for Zoho CRM and writing a custom script for the complete button in deluge. This script creates a task, and is supposed to assign the user who created it as the following fields: Created_By, Modified_By, and Task_Owner.
Regardless of what I enter into the script (and with plenty of Googling), I can't seem to get the numeric value of the user to assign the task to them. Here's what I've got:
tMap = Map();
cBy = Map();
mBy = Map();
tOw = Map();
cBy.put("name",zoho.loginuser);
cBy.put("id",zoho.loginuserid);
mBy.put("name",zoho.loginuser);
mBy.put("id",zoho.loginuserid);
tOw.put("name",zoho.loginuser);
tOw.put("id",zoho.loginuserid);
tMap.put("Created_By",cBy);
tMap.put("Modified_By",mBy);
tMap.put("Task_Owner",tOw);
tMap.put("Subject",subject);
tMap.put("Due_Date",dueDate);
tMap.put("Date",dueDate);
tMap.put("Status","Not Started");
tMap.put("What_Id",all_data);
tMap.put("$se_module","Leads");
createResp = zoho.crm.createRecord("Tasks",tMap);
This will create a task, but it leaves the aforementioned fields as the owner of our Zoho instance. Any help would be appreciated :)