How to programmatically set a reminder schedule for a Task on the date specified in "Due_Date" field?
I want to programmatically set up the reminder schedule for a Task that sends out an email reminder on the date specified in the "Due_Date" field. I've looked at the Zoho CRM Insert Record API and it looks like the TRIGGER key for "Remind_At" field requires the date and time to be in ISO8601 format. I have formatted the "due_date" field to be in this format, but what is the correct syntax to insert this information? I got an error in executing the following code snippet below.
Here's my code snippet:
newStartDate = phaseShiftStartDate.toDateTime("yyyy-MM-dd'T'HH:mm:ss'+00:00'").toString("yyyy-MM-dd'T'HH:mm:ss'+02:00'");
taskEventMap = {"Subject":"Robotic Process Automation (RPA) - Update Phase for Account " + accountId,"Due_Date":phaseShiftStartDate,"Remind_At":{"ALARM":"ACTION=EMAIL;TRIGGER=${newStartDate}}};
response = zoho.crm.createRecord("Tasks",taskEventMap);
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Zoho Orchestly Resources
Zoho Creator Resources
Zoho WorkDrive Resources
Zoho Campaigns Resources
Zoho CRM Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.