Workflow Rules and Actions Using Notes

Workflow Rules and Actions Using Notes

In Zoho FSM, workflow rules using notes help automate actions based on information added to records. By leveraging notes in workflow automation, teams can streamline communication, escalate issues, and automate service processes. The following are some of the examples that illustrate this:
  1. Create a ticket in Zoho Desk from a note in Zoho FSM. Refer to this section for the implementation details.
  2. Escalate a request when a critical note (e.g., mentioning "urgent" or "escalate") is added. Refer to this section for the implementation details.
  3. Automatically update the asset status and notify the admin when a note containing specific keywords (e.g., "urgent repair," "requires maintenance") is added to an asset record.
  4. The customer's request for additional service or concern about an ongoing problem can be documented as a note, which can be used to trigger a follow up work order.


 Available in Editions: All Editions


Info
- Permission Required: Manage Automation
- Find out the Edition-specific limits for Workflow Rules.

List of Supported Modules

You can create workflow rules using notes for the following modules:
  1. Assets
  2. Companies
  3. Contacts
  4. Estimates
  5. Requests
  6. Service Appointments
  7. Services And Parts
  8. Work Orders

Creating the workflow rule 

Refer to this page for details of the components of a workflow rule.
 
A sample workflow rule has been used to explain the steps involved in creating one. This workflow will create a ticket in Zoho Desk from a note in Zoho FSM. Here, we are assuming that Zoho FSM and Zoho Desk are integrated.
  1. Go to Setup > Automation > Workflow Rules and click Create Workflow.
  2. Enter the following details, then click Next:
    1. The Module for which the rule has to be triggered.
      The module used here is Service Appointments.
    2. A Rule Name
    3. A Description of the rule



  3. Select the rule trigger as On a Notes Action - Created and click Next.



  4. Select the rule criteria as To all Service Appointments and To all notes and click Next.



  5. Click +Action and select Webhook.



  6. Select Create your own Webhook and click Next.



  7. Enter the following details and click Save and Associate.
    Name: CreateTicket
    Method: POST
    URL to Notify: https://desk.zoho.com/api/v1/tickets
    Authorization Type: Connection
    Choose Connection: Create a connection for Zoho Desk.
    Body: Choose Type as Raw and Format as JSON and enter the following JSON.

    {
      "departmentId" : "1077597XXXXX6907",
      "contactId" : "${!Service_Appointments.Contact.ZDesk_Id}",
      "subject" : "${!Notes.Note_Title}",
      "description" : "${!Notes.Note_Content}",
      "status" : "Open"
    }

    To add a placeholder, type #. From the dropdown, select a module whose field value you want to use. Search the field you want to use and select it. The placeholders will be replaced with actual values when the webhook is executed. To find the departmentId navigate to Zoho Desk > Organization > Departments and click on the desired department name. You can find the departmentId at the end of the application url.



    You can also add the webhook if it has already been defined. Select Existing webhooks.



    Select the required webhook and click Next.



  8. Click Save.


Create a Connection for Zoho Desk

To create a connection for Zoho Desk:
  1. Go to Zoho FSM > Setup > Developer Space > Connections and click Create Connection.
  2. Under Default Services, select Zoho Desk.
  3. Enter the following and click Create And Connect.
    1. A Connection Name.
      The Connection Link Name will be automatically populated.
    2. Scopes as Desk.tickets.CREATE
  4. Provide the necessary access and permissions.

More Examples

Example 1: Escalate a request when a critical note is added.

This workflow is used to notify the admin whenever a critical note (e.g., mentioning "urgent" or "escalate") is added to a request.
  1. Go to Setup > Automation > Workflow Rules and click Create Workflow.
  2. Enter the following details, then click Next:
    1. Module: Requests
    2. Rule Name: EscalateCriticalRequest
    3. Description: Escalate a request when a critical note is added.



  3. Select the rule trigger as Created and click Next.



  4. Select the rule criteria as Only to the Service Appointment matching certain conditions and add a condition as shown below. Click Next.



  5. Click +Function.



  6. Select Create your own Function and click Next.



  7. Enter a Function Name and add the function in the ‌Deluge Script Editor. 

    Enter the following code. You need to create a connection for FSM named zfsm.

    adminEmail = organization.get("primary_email");
    attachmentsResp = notes.get("$attachments");
    file_attachment_list = List();
    reqName = request.get("Name");
    if(attachmentsResp.isNull())
    {
    info "No attachment present in the Note !!!";
    }
    else
    {
    attachments_list = attachmentsResp.toList();
    }
    for each  attachment in attachments_list
    {
    file_id = attachment.get("$file_id");
    fileResp = invokeurl
    [
    url :"https://fsm.zoho.com/fsm/v1/files?file_id=" + file_id
    type :GET
    connection:"zfsm"
    ];
    file_attachment_list.add(fileResp);
    }
    sendmail
    [
    from :zoho.adminuserid
    to :adminEmail
    subject :"Request " + reqName + " Escalated !!!"
    message :"This request has been escalated. PFA the supporting attachments."
    Attachments :file:file_attachment_list
    ]



  8. Click Save and Associate to add the function.
  9. Click Save.


Create a Connection for Zoho FSM

To create a connection for Zoho FSM:
  1. Navigate to Setup > Developer Space > Connections and under Custom Services, click Create Service.



  2. Enter the following details and click Create Service.
    1. Service Name: ZFSM
      The Service Link Name will be automatically populated.
    2. Authentication Type: OAuth2
    3. Parameter Type: Header
    4. Grant Type: Authorization Code
    5. Generated Client IDClient Secret
    6. Authorize URL: https://accounts.zoho.com/oauth/v2/auth?access_type=offline&prompt=consent
    7. Access Token URL: https://accounts.zoho.com/oauth/v2/token
    8. Refresh Token URL: https://accounts.zoho.com/oauth/v2/token
    9. Scope: ZohoFSM.files.READ
    10. Provide a Scope Display Name.



  3. Click Create Connection.



  4. Perform the following and click Create And Connect:
    1. Connection Name: ZFSM
      The Connection Link Name will be populated automatically.
    2. Select the Scopes ZohoFSM.files.READ



  5. Click Connect.



  6. Click Accept.


        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

                                                                                                                                • Workflow Rules and Actions

                                                                                                                                  With field services increasingly gaining traction worldwide, they are continuously evolving into a more systematic and standardized process. Automation plays a pivotal role in this transformation. Studied automation can make all the difference ...
                                                                                                                                • Using Zapier for Zoho FSM Integrations

                                                                                                                                  Zapier is an automation tool that connects different apps to streamline workflows without needing any coding. With 5,000+ app integrations, Zapier lets you automate workflows, save time, and reduce manual work. Listed below are some workflows that ...
                                                                                                                                • Using Zoho Flow for Zoho FSM Integrations

                                                                                                                                  Zoho Flow is an integration and automation platform that connects your favorite apps without requiring any coding. It helps businesses automate workflows by linking different applications and allowing data to flow seamlessly between them. Listed ...
                                                                                                                                • Time Based Rules

                                                                                                                                  Use Time-based Rules to automate triggering desired actions based on a specified date or time. Thus, time-based rules will help you automate routine tasks, improve communication with customers, ensure compliance with service commitments, and ...
                                                                                                                                • Create Work Orders in Bulk using Zoho Sheets

                                                                                                                                  Use case: Using Zoho Sheets, import/create multiple work orders at once. Here, taxes have not been considered. Follow the steps below to implement this use case: Step 1: Prepare a sheet with the work order values Step 2: Create a custom function Step ...
                                                                                                                                  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