Automation Workflows

Automation Workflows

Automating routine tasks is a big and powerful function that can save you time and improve your productivity. RouteIQ helps you do this by configuring workflows. So, in the place of basic check-outs, you can go a step further and:

1. Automatically send an SMS or Email once a stop has been visited.
Eg: When your field agents check-out of a stop, you could automate sending emails with surveys to collect the meeting feedback.

2. Automatically notify your clients via SMS or Email that they'll be visited next, once your agent has checked out of the current stop.
Eg: You can send a heads-up message to the person in your next stop that you just wrapped up your current visit and are heading straight for them now.

This help doc walks you through how it works and how to set it up.

 1. Send an SMS / email to someone at the current stop   
When you check out from a stop, RouteIQ can fetch details of the CRM record linked to that stop (Lead, Contact, or Deal) and use those details to send an SMS or email. This can be done using one of RouteIQ's hidden modules in Zoho CRM called "RIQ Field Visits". Let us see how to do that.

      1. Open the Settings menu in Zoho CRM

      

      2. Select "Workflow Rules" and click "Create rule"





3. Select RIQ Field Visits as the module, enter a rule name and click "Next".



4. Fill in the "When" criteria for the "Check-Out time" field as not empty and click "Done".





5. Choose "Function" in the 'Insert Action' field and click "Configure Function".







6. In the following page, a custom function is displayed. Edit it and add the below arguments and map it accordingly.
    1. String currentStopRecordModuleApiName=#RIQ Field Visits - Associated Record Module API Name

    2. Int currentStopRecordID =#RIQ Field Visits - Associated Record ID





7. Within the function, copy and paste the below snippet of code. This code checks and finds the email field of the record which triggered the workflow.

  1. //Arguments
  2. //currentStopRecordModuleApiName=#RIQ Field Visits - Associated Record Module API Name
  3. //currentStopRecordID =#RIQ Field Visits - Associated Record ID


  4. // Constants
  5. riqFVModApiName = "zrouteiqzcrm__RIQ_Field_Visits";
  6. riqAssociatedModApiName = "zrouteiqzcrm__Associated_Record_Module_API_Name";
  7. riqAssociatedRecID = "zrouteiqzcrm__Associated_Record_ID";
  8. crmModVsFieldApiName = Collection("Leads":"Email","Events":"Email","Contacts":"Email","Accounts":"Email", "Auto_Route_Creation": "Email");
  9. // Getting email ID for the current stop's CRM record
  10. associatedRecordDetails = zoho.crm.getRecordById(currentStopRecordModuleApiName,currentStopRecordID);
  11. fieldName = crmModVsFieldApiName.get(currentStopRecordModuleApiName);
  12. associatedRecordEmail = associatedRecordDetails.get(fieldName);
  13. // Write script to trigger email action below as required
  14. info associatedRecordEmail;
NotesNote: Line 10 needs to have a list of all RIQ integrated modules - api names and their respective email / phone fields - field api name. We recommend adding/removing the values within this collection based on the CRM modules integrated with RouteIQ. Write your own email/SMS triggering logic from line no 16.

8. Click "Save and Associate" and once you're back on the original page, click "Save".

All done! You have now successfully set up a workflow to automate the sending of notifications via email to a contact person in a stop once you check out of it.


Notes
Note: If no association exists: (i.e., the stop was manually added via @places or @favorite places), then no CRM record is available, so no notification is sent.

Example in action:

You check out from a doctor's clinic, and an email is automatically sent.

2. Send an SMS / email to someone at the next stop

Now, let us see how you can do the same to send an SMS or email to intimate the next customer that the field rep is en route to visit them.  

1. Open the Settings menu in Zoho CRM.



2. Select "Workflow Rules" and click "Create rule"





3. Select RIQ Field Visits as the module, enter a rule name and click "Next".



4. Set the workflow to be triggered whenever a record is updated via a specific field. The workflow needs to be triggered every time the field "Check-out Time" is modified to not-empty. Set the workflow rule to be applied for "All RIQ Field Visits" that matches the said condition.





5. Choose "Function" in the 'Insert Action' field and click "Configure Function".






6. In the following page, a custom function is displayed. Edit it and add the below arguments and map it accordingly.
    1. Int recordID = #RIQ Field Visits - RIQ Field Visit Id

    2. Int plannedVisitOrder = #RIQ Field Visits - Planned Visit Order

    3. Int routeID = #Lookup:RIQ Route Name - RIQ Route Id





7. Within the function, copy and paste the below snippet of code. This code checks and finds the email field of the record which triggered the workflow.
  1. //Arguments:
  2. // Int recordID = #RIQ Field Visits - RIQ Field Visit Id
  3. // Int plannedVisitOrder = #RIQ Field Visits - Planned Visit Order
  4. // Int routeID = #Lookup:RIQ Route Name - RIQ Route Id

  5. // Constants
  6. riqFVModApiName = "zrouteiqzcrm__RIQ_Field_Visits";
  7. riqPlanVisitOrder = "zrouteiqzcrm__Planned_Visit_Order";
  8. riqRouteName = "zrouteiqzcrm__RIQ_Route_Name";
  9. riqAssociatedModApiName = "zrouteiqzcrm__Associated_Record_Module_API_Name";
  10. riqAssociatedRecID = "zrouteiqzcrm__Associated_Record_ID";
  11. // Add all RouteIQ integrated module's API name as keys, and respective field API names as values
  12. crmModVsField = Collection("Leads":"Email","Events":"Email","Contacts":"Email","Accounts":"Email","Auto_Route_Creation":"Email");
  13. //Global Variable with the next stop's visit order as plus one
  14. plannedVisitOrderPlusOne = plannedVisitOrder + 1;
  15. plannedVisitOrderPlusOneAsString = plannedVisitOrderPlusOne.toString();
  16. // Getting all Stop Details with the same Route ID and the planned order as plus one
  17. recordSearchCrt = "(" + riqRouteName + ":equals:" + routeID + ") and (" + riqPlanVisitOrder + ":equals:" + plannedVisitOrderPlusOne + ")";
  18. nextStopDetails = zoho.crm.searchRecords(riqFVModApiName,recordSearchCrt);
  19. nextStopDetails = nextStopDetails.get(0);
  20. //Checking if there's a next stop or not
  21. if(nextStopDetails.size() == 0)
  22. {
  23. info "No Next Stop";
  24. }
  25. else
  26. {
  27. //Getting next stop's associated record details
  28. nextStopModuleAPIName = nextStopDetails.get(riqAssociatedModApiName);
  29. nextStopAssociatedRecordID = nextStopDetails.getJSON(riqAssociatedRecID);
  30. //Getting next stop's record details
  31. if(!nextStopAssociatedRecordID.isNull())
  32. {
  33. nextStopRecordDetails = zoho.crm.getRecordById(nextStopModuleAPIName,nextStopAssociatedRecordID);
  34. if(!nextStopRecordDetails.isNull())
  35. {
  36. info nextStopRecordDetails;
  37. nextStopEmail = crmModVsField.get(nextStopModuleAPIName);
  38. //Checking the module, and getting the email value from email field
  39. if(!nextStopEmail.isNull())
  40. {
  41. //Type your mail logic here
  42. info nextStopRecordDetails.get(nextStopEmail);
  43. }
  44. }
  45. }
  46. else
  47. {
  48. info "This is not a CRM Record. It might be a RIQ address record";
  49. }
  50. }
    Notes
    Note: Line 13 needs to have a list of all RIQ integrated modules - api names and their respective email / phone fields - field api names. We recommend adding/removing the values within this collection based on the CRM modules integrated with RouteIQ. Write your own email/SMS triggering logic with content from line no 42.
    8. Click "Save and Associate" and once you're back on the original page, click "Save".


    Example in action

    You check out from Warehouse A refilling your bag with all the supplies you're going to be dropping off today. Automatically, Doctor Johnson (your next stop) receives an email/SMS based on your setup like:
    "Sonia from Rung Pharmaceuticals is on the way.”

    Key Notes  

    • If a stop was added manually using @places or @favorite places (i.e., no CRM record is linked), RouteIQ cannot fetch mobile/email automatically. This is because there is no CRM record for that stop. Hence the workflow will be ignored for that particular case.


    • Notifications can be customized. You can choose the exact SMS/email text when setting up the workflow.


    NotesNote: RouteIQ does not have any SMS / Email vendors in place. To be able to use this function, you have to have an integration setup either through Zoho Marketplace or other vendors of your choice. For further help in this area, please contact support@zohocrm.com and our team will guide you with the process.
    • This helpdoc is an example of how data can be taken advantage of to automate your business processes. Learn more on where and what details does RouteIQ send to Zoho CRM to get an idea on writing your own automations.

    What you can achieve  

    • Saves you time.

    • Reduces scope for human error. Bots never forget, people do. This automation rule helps you overcome the shortcoming with manual notifications.

    • Saves you work. No one wants to do boring tasks that can be done by a bot

    With just a little setup, RouteIQ turns your daily route into a smart, automated workflow that keeps everyone in the loop.
       


        Create. Review. Publish.

        Write, edit, collaborate on, and publish documents to different content management platforms.

        Get Started Now


          Access your files securely from anywhere

            Zoho CRM Training Programs

            Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

            Zoho CRM Training
              Redefine the way you work
              with Zoho Workplace

                Zoho DataPrep Personalized Demo

                If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

                Zoho CRM Training

                  Create, share, and deliver

                  beautiful slides from anywhere.

                  Get Started Now


                    Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                    BOOK A SESSION







                                Quick LinksWorkflow AutomationData Collection
                                Web FormsEnterpriseOnline Data Collection Tool
                                Embeddable FormsBankingBegin Data Collection
                                Interactive FormsWorkplaceData Collection App
                                CRM FormsCustomer ServiceAccessible Forms
                                Digital FormsMarketingForms for Small Business
                                HTML FormsEducationForms for Enterprise
                                Contact FormsE-commerceForms for any business
                                Lead Generation FormsHealthcareForms for Startups
                                Wordpress FormsCustomer onboardingForms for Small Business
                                No Code FormsConstructionRSVP tool for holidays
                                Free FormsTravelFeatures for Order Forms
                                Prefill FormsNon-Profit

                                Intake FormsLegal
                                Mobile App
                                Form DesignerHR
                                Mobile Forms
                                Card FormsFoodOffline Forms
                                Assign FormsPhotographyMobile Forms Features
                                Translate FormsReal EstateKiosk in Mobile Forms
                                Electronic Forms
                                Drag & drop form builder

                                Notification Emails for FormsAlternativesSecurity & Compliance
                                Holiday FormsGoogle Forms alternative GDPR
                                Form to PDFJotform alternativeHIPAA Forms
                                Email FormsFormstack alternativeEncrypted Forms

                                Wufoo alternativeSecure Forms

                                TypeformWCAG

                                  All-in-one knowledge management and training platform for your employees and customers.


                                              Create. Review. Publish.

                                              Write, edit, collaborate on, and publish documents to different content management platforms.

                                              Get Started Now




                                                                You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                                    Manage your brands on social media


                                                                      • Desk Community Learning Series


                                                                      • Digest


                                                                      • Functions


                                                                      • Meetups


                                                                      • Kbase


                                                                      • Resources


                                                                      • Glossary


                                                                      • Desk Marketplace


                                                                      • MVP Corner


                                                                      • Word of the Day


                                                                      • Ask the Experts


                                                                        Zoho Sheet Resources

                                                                         

                                                                            Zoho Forms Resources


                                                                              Secure your business
                                                                              communication with Zoho Mail


                                                                              Mail on the move with
                                                                              Zoho Mail mobile application

                                                                                Stay on top of your schedule
                                                                                at all times


                                                                                Carry your calendar with you
                                                                                Anytime, anywhere




                                                                                      Zoho Sign Resources

                                                                                        Sign, Paperless!

                                                                                        Sign and send business documents on the go!

                                                                                        Get Started Now




                                                                                                Zoho TeamInbox Resources





                                                                                                          Zoho DataPrep Demo

                                                                                                          Get a personalized demo or POC

                                                                                                          REGISTER NOW


                                                                                                            Design. Discuss. Deliver.

                                                                                                            Create visually engaging stories with Zoho Show.

                                                                                                            Get Started Now








                                                                                                                                • Related Articles

                                                                                                                                • RouteIQ Features

                                                                                                                                  For plan based pricing detail, click here Standard Plan Features STANDARD (FLEXI) PLAN Features Explanation 1,000 Free Record Credits per Month A record credit is a token that is exchanged for an attempt to convert an address into GPS coordinates. ...
                                                                                                                                  Wherever you are is as good as
                                                                                                                                  your workplace

                                                                                                                                    Resources

                                                                                                                                    Videos

                                                                                                                                    Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                                    eBooks

                                                                                                                                    Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                                    Webinars

                                                                                                                                    Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                                    CRM Tips

                                                                                                                                    Make the most of Zoho CRM with these useful tips.



                                                                                                                                      Zoho Show Resources