Creating a Task that Repeats with Reminders via API (or deluge integration)

Creating a Task that Repeats with Reminders via API (or deluge integration)

Hello,

I've been using the API to create tasks with reminders for a couple of years now and am familiar with the required structure of the 'Remind_At' property.

I am now trying to create a series of repeating Tasks and I would like the tasks to have reminders that are trigged on the Due Date at 6am pacific time.

I can use the following code to create a task that repeats but doesn't have reminders or I can also use the following code to create a task that has reminders but doesn't repeat. But as soon as I try to create the task with both I get an error that says the time I am providing for the remind at alarm is invalid. I'm assuming I have to use some other value for the 'TRIGGER' value of the alarm but I can't find any documentation regarding potential values.

  1. remindAt = { "ALARM":"FREQ=NONE;ACTION=EMAILANDPOPUP;TRIGGER=DATE-TIME:"+remindTime };
  2. repeat = { 'RRULE':'FREQ=YEARLY;INTERVAL=1;BYMONTH='+repeatMonth+';BYMONTHDAY='+repeatDay+';DTSTART='+dueDate+';UNTIL='+repeatEnd };
  3. taskData = {
  4. 'Owner': ownerID,
  5. 'Subject': 'Send Birthday Greeting to '+bd.get('name')+' for Birthday on '+bDateText,
  6. 'What_Id': zID,
  7. '$se_module': "Accounts",
  8. 'Due_Date': dueDate,
  9. 'Recurring_Activity': repeat,
  10. 'Remind_At': remindAt
  11. };
  12. info "{ \"data\": [ " + taskData.toText() + " ] }";
  13. newTask = invokeurl [
  14. url: zoho_api_url + "Tasks"
  15. type: POST
  16. parameters: "{ \"data\": [ " + taskData.toText() + " ] }"
  17. connection: "zoho_crm_api"
  18. ];

When I run that code I get the following error.

  1. {
        "code": "INVALID_DATA",
        "details": {
            "expected_data_type": "ALARM",
            "api_name": "Remind_At",
            "json_path": "$.data[0].Remind_At.ALARM"
        },
        "message": "invalid recurring reminder pattern",
        "status": "error"
    }

But if I remove one or the other of 'Recurring_Activity' or 'Remind_At' from the input data the Task creation does succeed. So there is no problem with anything in my code other than something in the value of the remind at trigger.

  1. { "ALARM": "FREQ=NONE;ACTION=EMAILANDPOPUP;TRIGGER=DATE-TIME:2022-11-02T06:00:00-07:00" }

What do I need to change so that the Task is created repeating once a year and with reminders on the due date at 6am?

Thanks for you help.



            Zoho Marketing Automation

                    Zoho Pagesense Resources

                      Zoho SalesIQ Resources



                            Zoho TeamInbox Resources

                              Zoho DataPrep Resources



                                Zoho CRM Plus Resources

                                  Zoho Books Resources


                                    Zoho Subscriptions Resources

                                      Zoho Desk Resources

                                        Zoho Projects Resources


                                          Zoho Sprints Resources


                                            Qntrl Resources


                                              Zoho Creator Resources


                                                Zoho WorkDrive Resources





                                                    Zoho Campaigns Resources

                                                      Zoho CRM Resources

                                                            Design. Discuss. Deliver.

                                                            Create visually engaging stories with Zoho Show.

                                                            Get Started Now