Zoho Flow creating Zoho CRM entry and data type problem

Zoho Flow creating Zoho CRM entry and data type problem

Hi all,

I'm trying to connect Calendly with Zoho CRM.  From a logic perspective, I'd like the following to happen.

Client schedules a call in Calendly
Call is added to Zoho CRM record
A Task is created with a due date 14 days after the scheduled date of the call

The call is added just fine - no issues there.

When I try and create the follow up task, I'm running into issues, specifically with the due date and data types.  No matter what I try, I get a data type error on the CRM side.  CRM is receiving a string, not a date.

The way I'm trying to do this is I created a custom function to take the schedule date and add 14 days to it and use the new date as the due date for the new task.  Here's the custom function - it outputs the correct value but CRM rejects it as a string.

  1. date Calculate_Followup_Date(date start_date)
  2. {
  3. followup_date = start_date.addDay(14);
  4. followup_date = followup_date.toDate();
  5. return followup_date;
  6. }

I have read and reread the documentation but don't see what I'm doing wrong.  Am I missing something?  Seems like this should work but I can't seem to get anything out of any custom function other than a string.

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now