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:
- Create a ticket in Zoho Desk from a note in Zoho FSM. Refer to this section for the implementation details.
- Escalate a request when a critical note (e.g., mentioning "urgent" or "escalate") is added. Refer to this section for the implementation details.
- 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.
- 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.
List of Supported Modules
You can create workflow rules using notes for the following modules:
- Assets
- Companies
- Contacts
- Estimates
- Requests
- Service Appointments
- Services And Parts
- 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.
- Go to Setup > Automation > Workflow Rules and click Create Workflow.
- Enter the following details, then click Next:
- The Module for which the rule has to be triggered.
The module used here is Service Appointments. - A Rule Name
- A Description of the rule
![](https://help.zoho.com/galleryDocuments/edbsnff13845bf753e39af4c708b1800e0cf7c39034be11e9420ef0c0c56b96b6674ceef6310cfde3c64a0ac10fb25e093f3d?inline=true)
- Select the rule trigger as On a Notes Action - Created and click Next.
![](https://help.zoho.com/galleryDocuments/edbsneb1e7221ce1849dd9af9d3fa72db90a2df59fa2384026bc0a853307ad4a59aa491ed359fde9726f797f9067971c1b835?inline=true)
- Select the rule criteria as To all Service Appointments and To all notes and click Next.
![](https://help.zoho.com/galleryDocuments/edbsnc6069956360ebf02864b944f18c92c3bc4ca32f1a3cb1a872e971aca43d038bbb2a0503e2d8aee14956750afbb73fe0f?inline=true)
- Click +Action and select Webhook.
![](https://help.zoho.com/galleryDocuments/edbsn6d46e37be82c06b73b55671243622d053b1164049c4afa4d78730b20dd24fafb95298dff7548cbe7cecbf567a3441989?inline=true)
- Select Create your own Webhook and click Next.
![](https://help.zoho.com/galleryDocuments/edbsne55ca9670eed5bef9228b70c0974d10f8190ad87061d1cb2c83e91e8348dd2e16c409b3cad99743f39189f7f452554a0?inline=true)
- 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.
![](https://help.zoho.com/galleryDocuments/edbsn416c7db95130ca61719471c36920380753e00c480d6e024ea28598950c481685d982133251247fe65a98f3144e93762b?inline=true)
You can also add the webhook if it has already been defined. Select Existing webhooks.
![](https://help.zoho.com/galleryDocuments/edbsn1be6073b222794943023f63376f1688e5f3c83e2ccec97da6590890617878f20e1c8ed355cc3ff272a3b4306bf9d6dac?inline=true)
Select the required webhook and click Next.
![](https://help.zoho.com/galleryDocuments/edbsn00b477c496ec06d0700296fadf79ffec43dccb48eedf97462653b5e210dbb8f3922381e36a8c8601360dc8ac1439dfea?inline=true)
- Click Save.
![](https://help.zoho.com/galleryDocuments/edbsn7c51885261bb09971df4ad1b34dcdc6ccd3ff12f274edc18b3a1d0752b7384b99513c6381eea611e89e64fbdd365b483?inline=true)
Create a Connection for Zoho Desk
To create a connection for Zoho Desk:
- Go to Zoho FSM > Setup > Developer Space > Connections and click Create Connection.
- Under Default Services, select Zoho Desk.
- Enter the following and click Create And Connect.
- A Connection Name.
The Connection Link Name will be automatically populated. - Scopes as Desk.tickets.CREATE
- 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.
- Go to Setup > Automation > Workflow Rules and click Create Workflow.
- Enter the following details, then click Next:
- Module: Requests
- Rule Name: EscalateCriticalRequest
- Description: Escalate a request when a critical note is added.
![](https://help.zoho.com/galleryDocuments/edbsn3c44eee0f04889f765f114e8d77cca49a73b70021c767e3f702a62a4beb23e5ac566f79ca40701360180320792bc6f20?inline=true)
- Select the rule trigger as Created and click Next.
![](https://help.zoho.com/galleryDocuments/edbsn813df9d2b1143a2353df9f4df1821390cca25407800ef60a27267dd3c195de4d526973a4260cf08b10c2935a6bc7884b?inline=true)
- Select the rule criteria as Only to the Service Appointment matching certain conditions and add a condition as shown below. Click Next.
![](https://help.zoho.com/galleryDocuments/edbsn77ab1f9c94ed425ba4aa2b229c81daaf69a15dfeeb0b7f0eb7a4a37ca554eee360ea29c806e9a9d6d75defe953d962bc?inline=true)
- Click +Function.
![](https://help.zoho.com/galleryDocuments/edbsn7fd0d1b799e8e8e6b4e1fe5a42c5f5bbcb835ad0e77b1ed1272e09d0902add99c28f829d47d664e9fe5723e266f44808?inline=true)
- Select Create your own Function and click Next.
![](https://help.zoho.com/galleryDocuments/edbsn9480b5d8d0d9d83e9ecf385595bb50f3dbc443593f58ea7c74b12d38598db1bb7fd95b6cbcf9378748b1bcf66e4e0a1a?inline=true)
- 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
]
![](https://help.zoho.com/galleryDocuments/edbsn86f0634c4f27ddee2b545aa381dbaae1a6d700f48b1dca53d56b3113aba6dd09a783e11a830851809af5826a4f182e0e?inline=true)
- Click Save and Associate to add the function.
- Click Save.
![](https://help.zoho.com/galleryDocuments/edbsn3cb572c4be3678ffb6b5eb3f4c5082645a698a3c3d6fd57a517f2f48f385b33a88dc8d5eadc19869fe702b8dc183d4b0?inline=true)
Create a Connection for Zoho FSM