But the system does not like "Contacts" for the "$se_module" function.
Is there a different method/script to create a Task directly associated with a Contact?
mp = Map();
mp.put("Subject","Client Written Note");
mp.put("$se_module","Contacts");
mp.put("What_Id",arg_record_id);
mp.put("Owner",contact_record.get("Owner").get("id"));
mp.put("Due_Date",due_date_initial);
mp.put("Remind_At",{"ALARM":"FREQ=MONTHLY;ACTION=EMAIL;TRIGGER=DATE-TIME:" + reminderTime.toString("yyyy-MM-dd'T'HH:mm:ss'+05:30'")});
mp.put("Status","Not Started");
createTask = zoho.crm.createRecord("Tasks",mp);
info mp;
info createTask;
**********
Here is the failure message:
- {"code":"INVALID_DATA","details":{"api_name":"$se_module"},"message":"invalid data","status":"error"}