Zoho FSM | Send notifications of new requests

Send notifications of new requests

Use case: Notify the Administrator via SMS and the Call Center Agent via email of new requests. Here, the SMS will be sent via Twilio.
 
Follow the steps below to implement this use case:

Step 1: Create a connection for Twilio

To use the Twilio API for sending SMS via the invokeURL task, you need to create a connection for Twilio. To do so:
  1. Navigate to Setup > Developer Space > Connections and click Create Connection.



  2. Under the Default Services tab, select Twilio.



  3. Enter the Connection Name as Twilio and click Create And Connect.
    The Connection Link Name will be automatically populated. Disable Use Credentials Of Login User. If this is disabled, the connection will utilize the credentials of the connection owner.

  4. Click Connect.



  5. Click Authorize in the Authorization page.



  6. Enter the Account SID and Auth Token and click Authorize.


In the custom function, where the Twilio API is used via the invokeURL task, use this Connection Link Name.

Step 2: Create a custom function

Create a custom function in Zoho FSM to notify the Administrator via SMS and the Call Center Agent via email of new requests as they come in. Here, the SMS service provider used is Twilio.
  1. Navigate to Setup > Automation > Functions and click Create Function.



  2. Enter the following details and click Save:
    1. Function Name: NotifyUserAboutNewRequest
    2. Module: Requests
    3. In the Deluge Script Editor, enter the following script:


      /*----------------------------------
      Fetch all Customer Service Agent email
      ----------------------------------*/
      userEmail = "";
      userMobile = "";
      UserRespList = zoho.fsm.getRecords("users").get("users").toList();
      for each  UserResp in UserRespList
      {
      UserRespMap = UserResp.toMap();
      if(UserRespMap.get("client_profile") == "Customer Service Agent")
      {
      userEmailTemp = UserRespMap.get("email");
      userEmail = userEmail + "," + userEmailTemp;
      }
      if(UserRespMap.get("client_profile") == "Administrator")
      {
      userMobile = UserRespMap.get("mobile");
      }
      }
      if(userEmail != "")
      {
      userEmail = userEmail.subString(1,userEmail.length());
      }
      /*----------------------------------
      Fetch Request Detail
      ----------------------------------*/
      requestId = request.get("id");
      requestResp = zoho.fsm.getRecordById("Requests",requestId);
      requestData = requestResp.get("data").toMap();
      Name = requestData.get("Summary");
      id = requestData.get("id");
      Phone = requestData.get("Phone");
      Email = requestData.get("Email");
      Priority = requestData.get("Priority");
      Contact = requestData.get("Contact").toMap().get("name");
      /*----------------------------------
      construct message
      ----------------------------------*/
      message = "Dear Customer Service Agents,<br><br> A new request has been added to FSM. Details are as follows: <br><br> Request Summary - " + Name + ", <br>Priority - " + Priority + ", <br>Customer name - " + Contact + ",<br> Customer Email - " + Email + ",<br> Customer Phone - " + Phone + ",<br> FSM Link - https://fsm.zoho.com/home#/tab/Requests/" + id + "<br><br>Kindly check the request and do the needful. <br><br>Thanks & Regard,<br>Admin";
      /*----------------------------------
      Send Mail
      ----------------------------------*/
      sendmail
      [
      from :zoho.adminuserid
      to :userEmail
      subject :"New Request received in FSM"
      message :message
      ]
      /*----------------------------------
      Send SMS
      ----------------------------------*/
      bodymap = Map();
      bodymap.put("To",userMobile);
      bodymap.put("From","+15139958354");
      bodymap.put("Body",message);
       
      //Replace {AccountSid} with actual value
      sms_response = invokeurl
      [
      type :POST
      parameters:bodymap
      connection:"twilio"
      ];
      info sms_response;
Replace {AccountSid} with the actual value. Refer Twilio's API documentation for details.
 

Step 3: Create a workflow rule

Create a workflow rule in Zoho FSM to notify the Administrator via SMS and the Call Center Agent via email of new requests.
  1. Navigate to Setup > Automation > Workflow Rules and click Create Workflow.
  2. Enter the following details, then click Next :
    1. Module: Requests
    2. Rule Name: Notify User about New Request
    3. Description: Notify the Administrator via SMS and the Call Center Agent via email of new requests



  3. Select the rule trigger as Created and click Next.
  4. Select the rule criteria as To all Requests. Click Next.



  5. Click +Action and select Function.



  6. Select Existing Functions and click Next.



  7. Select the function created in the previous step.



  8. Click Save.

Testing the use case

Create a Request. The Administrator will receive a SMS and the Call Center Agent will receive an email notification.
 
Note:
Ensure that the mobile number of the Administrators is formatted with a + and country code.

        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

                                                                                                                                  • Requests

                                                                                                                                    Requests are initiated to render services to customers. Services are the offerings you provide as part of your field services. Customers can contact a call center agent to raise the request on their behalf. You can create requests from the Zoho FSM ...
                                                                                                                                  • What filters and sorting options are available in the Requests list view in Zoho FSM?

                                                                                                                                    In the Requests list view, you can use both basic filters and advanced filters to locate specific Requests quickly. Basic Filters Request Name Status Email Contact Company Advanced Filters If you switch to the Advanced Filter, you can filter Requests ...
                                                                                                                                  • Create Requests in Zoho FSM from Zoho CRM Deals

                                                                                                                                    Usecase: Using a custom button, push Deals in Zoho CRM as Requests to Zoho FSM. Step 1: Create a connection for Zoho FSM in Zoho CRM Step 2: Create a custom button Step 3: Create a custom function Step 1: Create a connection for Zoho FSM in Zoho CRM ...
                                                                                                                                  • Notifications

                                                                                                                                    In Zoho FSM, there are two types of notifications: System Notifications Custom Notifications System Notifications Available in Editions: All Editions Through the system notifications, users will get notified about relevant updates. The notifications ...
                                                                                                                                  • How can I customize the fields in the Requests module in Zoho FSM?

                                                                                                                                    To customize the fields in the Requests module: Go to Setup > Customization > Modules and Fields. Select Requests. On the Module Builder page: Drag and drop fields from the New Fields tray into the layout. Set properties such as Field Label, Type, ...
                                                                                                                                    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