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.



  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.

    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 Links Workflow Automation Data Collection
                          Web Forms Enterprise Begin Data Collection
                          Interactive Forms Workplace Data Collection App
                          CRM Forms Customer Service Accessible Forms
                          Digital Forms Marketing Forms for Small Business
                          HTML Forms Education Forms for Enterprise
                          Contact Forms E-commerce Forms for any business
                          Lead Generation Forms Healthcare Forms for Startups
                          Wordpress Forms Customer onboarding Order Forms for Small Business
                          No Code Forms Construction RSVP tool for holidays
                          Free Forms Travel
                          Prefill Forms Non-Profit

                          Intake Forms Legal
                          Mobile App
                          Form Designer HR
                          Mobile Forms
                          Card Forms Food Offline Forms
                          Assign Forms Photography
                          Mobile Forms Features
                          Translate Forms Real Estate Kiosk in Mobile Forms
                          Electronic Forms

                          Notification Emails for Forms Alternatives Security & Compliance
                          Holiday Forms Google Forms alternative  GDPR
                          Form to PDF Jotform alternative HIPAA Forms
                          Email Forms
                          Encrypted Forms
                          Embeddable Forms
                          Secure Forms
                          Drag and Drop form builder
                          WCAG



                                              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

                                                    Zoho Desk Resources

                                                    • Desk Community Learning Series


                                                    • Digest


                                                    • Functions


                                                    • Meetups


                                                    • Kbase


                                                    • Resources


                                                    • Glossary


                                                    • Desk Marketplace


                                                    • MVP Corner


                                                    • Word of the Day


                                                      Zoho Marketing Automation

                                                        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 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 ...
                                                                                                                • Notifications

                                                                                                                  In Zoho FSM, there are two types of notifications: System Notifications Custom Notifications System Notifications Through the system notifications, users will get notified about relevant updates. The notifications may be of events that require action ...
                                                                                                                • WhatsApp Notifications

                                                                                                                  You can effectively inform and engage users by utilizing WhatsApp notifications, sending them timely, and relevant updates. By combining WhatsApp notifications with workflows, you can automate the process of sending personalized messages based on ...
                                                                                                                • Send Notifications

                                                                                                                  Send mail The sendmail deluge task when executed sends an email to the specified recipients. Syntax sendmail [ from: <from_address> to: <to_address> subject: <subject> message: <message> ] where, <from_address> is the value you provide here will be ...
                                                                                                                • Create Requests in Zoho FSM from Zoho CRM Deals

                                                                                                                  Usecase: Using a custom button, push Deals in Zoho CRM as Requests to Zoho FSM. Also, create a related list in the Deals record that lists the Requests created for the Deal. Step 1: Create a connection for Zoho FSM in Zoho CRM Step 2: Create a custom ...
                                                                                                                  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