Automation

Automation allows you to create rules that trigger actions automatically. You can set up workflow rules, define conditions for execution, and associate actions such as email alerts, in-app notifications, field updates, webhooks and custom functions. Additionally, you can create schedules for workflow rules and view logs of executed workflows.

Workflow Rules

Workflow Rules are automation rules that help streamline processes by automatically performing actions when specific events occur.

You can automate tasks such as sending email alerts and in-app notifications, updating fields, and triggering webhooks and custom functions by creating workflow rules in Zoho Practice. The workflow rule executes automatically once the conditions are met.

Create Workflow Rules

To create workflow rules:

Name Your Workflow

Fill in the following the in the New Workflow Rule pop-up:

Choose When to Trigger

Fill in the following details in the Workflow Rule Execution Condition section:

Event Based

If you select Event Based as the Workflow Type, you need to fill in the following fields:

If you choose Edited or Created or Edited as the Action Type, fill in the following fields:

Execute the workflow when: Choose the condition that determines when the workflow should be triggered based on actions taken on the fields. The following options are supported:

Execute when the record is: Choose when the workflow should be triggered based on how often the record is edited. The following options are supported:

Date Based

If you select Date Based as the Workflow Type, you need to fill in the following fields:

Note: Date based workflows will be executed only for records that are created/edited after setting up this workflow.

Add Criteria

Other than choosing when a workflow is triggered (event or date based), you can use criteria to ensure the workflow runs only when specific conditions are met. Criteria can contain one or more conditions. To add a criteria:

Add Actions

Once you set up the triggers, the next step is to associate actions with the workflow. These include Email Alerts, In-app Notifications, Field Updates, Webhooks, and Custom Functions. You can customize the actions to suit your business needs and choose to trigger the actions immediately when the conditions are satisfied (Immediate Actions) or at a particular time (Time Based Actions).

Immediate Actions

The actions will occur immediately when the record meets the criteria mentioned in the workflow. Once the workflow condition is met, you can choose what action has to be triggered.

To add immediate actions to your workflow rule:

Time Based Actions

Triggers actions based on the scheduled time. To add time based actions for your workflow rule:


Clone Workflow Rules

If you need new workflow rules with the same details present in existing workflow rules, you can clone the existing ones. Here’s how:


Change the Order of Workflow Rules

In Zoho Practice, the order of rules in your automation list directly dictates their execution sequence. When a single record triggers multiple workflows, the system processes them from top to bottom as they appear in the list. To ensure your business logic triggers in the correct priority, such as updating a field before an automated notification is sent, you can use the Change Order feature to manually drag and drop rules into your preferred hierarchy. Here’s how:


View Workflow Actions Usage Stats

As workflows enable automation and many day-to-day business operations depend on them for smooth functioning, it is essential for businesses to be aware of the number of workflow actions triggered each day. This helps them plan and manage their automation effectively. Zoho Practice provides a Usage Stats section where you can view the total workflow actions available and the number of actions triggered for the day.

To view the workflow actions usage stats:


Configure Notification Preferences for Workflow Rules

Insights:

  • You can trigger a workflow alert up to 500 times a day.
  • Admins will also receive in-app notifications when any workflow action crosses the specified threshold.

You can set daily limits for workflow alert triggers and add email recipients to get notified when the daily threshold is reached. You can also configure how you receive failure log notifications when a workflow rule fails. To configure:


Edit Workflow Rules

You can make changes to workflow rules by editing them. Here’s how:


Mark Workflow Rules As Inactive

If you won’t be using some workflow rules for a while but want to keep them for future use, you can mark them as inactive instead of deleting them. To mark them as inactive:


Mark Workflow Rules As Active

If you require workflow rules that were previously marked as inactive, you can enable them again. To mark them as active:


Filter Workflow Rules

You can access workflow rules quickly by filtering them by the module for which they were created or their status. Here’s how:


Delete Workflow Rules

If you don’t require any workflow rules, you can delete them. Here’s how:


Workflow Actions

Email Alerts

Email Alerts in Zoho Practice are automated email notifications that are sent when specific actions configured in an associated workflow rule are triggered. They ensure that the right stakeholders are informed at the right time.

Create Email Alerts

To associate email alerts with workflow rules, you must first create them. Here’s how you can create email alerts:


Associate Email Alerts to Workflow Rules

The email alerts you create should be associated with workflow rules so that they can triggered automatically when the required conditions are met.

To associate email alerts with workflow rules:

Now, whenever the criteria is met, the workflow rule will be triggered, which in turn will trigger the email alert.


Edit Email Alerts

If you want to update the details of email alerts, you can edit them. Here’s how:


Filter Email Alerts

You can find email alerts easily by filtering them by the module for which they were created. To filter email alerts:


Delete Email Alerts

Warning: Deleting an email alert is permanent and cannot be undone. If the email alert you’re deleting is associated with a workflow rule, the workflow rule will not be executed.

If you no longer require certain email alerts, you can delete them. Here’s how:


In-app Notifications

In-app notifications in Zoho Practice system-generated notifications that appear within the app to inform users about important activities. They ensure that the right stakeholders are informed at the right time.

Create In-app Notifications

To associate in-app notifications with workflow rules, you must first create them. Here’s how you can create in-app notifications:


Associate In-app Notifications With Workflow Rules

The in-app notifications you create should be associated with workflow rules so that they can triggered automatically when the required conditions are met.

To associate in-app notifications with workflow rules:

Now, whenever the criteria is met, the workflow rule will be triggered, which in turn will trigger the in-app notification.


Edit In-app Notifications

If you want to update the details of in-app notifications, you can edit them. Here’s how:


Filter In-app Notifications

You can find in-app notifications easily by filtering them by the module for which they were created. To filter in-app notifications:


Delete In-app Notifications

Warning: Deleting an in-app notification is permanent and cannot be undone. If the in-app notification you’re deleting is associated with a workflow rule, the workflow rule will not be executed.

If you no longer require certain in-app notifications, you can delete them. Here’s how:


Field Updates

Using Field Updates, you can have the system update fields of a particular module automatically for which the workflow has been triggered. These workflows can be triggered based on the criteria you set. For example, you can choose to automatically update the payment terms in bills to Net 90 days for certain vendors.

Create Field Updates

To associate field updates with workflow rules, you must first create them. Here’s how you can create field updates:


Associate Field Updates With Workflow Rule

The field updates you create should be associated with workflow rules so that they can triggered automatically when the required conditions are met.

To associate field updates with workflow rules:

Now, whenever the criteria is met, the workflow rule will be triggered, which in turn will trigger the field update.


Edit Field Updates

If you want to update the details of field updates, you can edit them. Here’s how:


Filter Field Updates

You can find field updates easily by filtering them by the module for which they were created. To filter field updates:


Delete Field Updates

Warning: Deleting a field update is permanent and cannot be undone. If the field update you’re deleting is associated with a workflow rule, the workflow rule will not be executed.

If you no longer require certain field updates, you can delete them. Here’s how:


Webhooks

Webhooks are user-defined HTTP & HTTPS callbacks that are triggered when a particular event occurs at the source site. When the event occurs, the source site makes a HTTP or HTTPS request to the specified URL. In simple words, Webhooks lets you perform actions on another application based on the changes happening to the records in Zoho Practice. A webhook is used to send out an event notification to another application.

Once you have configured the URL, Zoho Practice will post the event as a JSON to your webhook URL. For example, if a report is reimbursed in Zoho Practice, then a notification is sent to the specified URL.

Create Webhooks

To associate webhooks with workflow rules, you must first create them. Here’s how you can create webhooks:


Secure Your Webhooks

Securing your webhooks can help verify that the webhooks were sent from Zoho Practice. To do this, you have to set up your server so that it listens for webhooks from Zoho Practice. When your server receives a webhook from Zoho Practice, a hash value must be generated based on the payload and your secret token.

Once done, check if it matches the hash value from Zoho Practice and thereby validate the source of the webhook. This can add a layer of security by enabling your server to disregard third-party webhooks pretending to originate from Zoho Practice.


Validate Webhooks

When your server receives a webhook, a hash value will have to be generated for the payload in the same way Zoho Practice generates it. This is necessary to produce the same hash value to validate the webhook. The following parameters (if available) are used to generate the hash value:

Construct a string by sorting the payload’s key-value pairs in alphabetical order. The pair must be sorted in alphabetical order with respect to their keys.

Notes:

  • If your webhook contains query string parameters, ensure that those key-value pairs are sorted along with the payload’s key-value pairs.
  • There cannot be any spaces between the key-value pairs.

Once you have sorted the key-value pairs and constructed the string, append the raw JSON to the end of the string.

Pro Tip:

  • If your payload is in the x-www-form-urlencoded format, the entire string must be decoded before generating the hash value.
  • If one of the key value pairs contains spaces, the spaces must also be included in the constructed string.

The hash value is generated by applying the HMAC-SHA256 algorithm on this string, along with the secret token that was used in Zoho Practice.

You can then validate the webhook by checking if the hash value computed from your side matches the one in the header (X-Zoho-Webhook-Signature) of the webhook from Zoho Practice.


Associate Webhooks With Workflow Rules

The webhooks you create should be associated with workflow rules so that they can triggered automatically when the required conditions are met.

To associate webhooks with workflow rules:


Edit Webhooks

If you want to update the details of webhooks, you can edit them. Here’s how:


Filter Webhooks

You can find webhooks easily by filtering them by the module for which they were created. To filter webhooks:


Delete Webhooks

Warning: Deleting a webhook is permanent and cannot be undone. If the webhook you’re deleting is associated with a workflow rule, the workflow rule will not be executed.

If you no longer require certain webhooks, you can delete them. Here’s how:


Custom Functions

Custom Functions allows you to simply drag and drop code to automate your business processes. Using custom functions, you can update the data in a related database or a third-party application automatically by executing simple program scripts written using the low-code programming language, Deluge, associate them to workflow rules, and automate processes based on your business requirements.

What is Deluge?

Deluge (Data Enriched Language for the Universal Grid Environment) is an online scripting language integrated with Zoho Creator. It enables users to add logic to the application, incrementally, making it more powerful and robust. To know about Deluge, refer the Deluge Reference Guide.

If you wish to learn Deluge, check out Learn Deluge.

Create Custom Functions

To associate custom functions with workflow rules, you must first create them. Here’s how you can create custom functions:


Associate Custom Functions With Workflow Rules

The custom functions you create should be associated with workflow rules so that they can triggered automatically when the required conditions are met.

To associate custom functions with workflow rules:


Edit Custom Functions

If you want to update the details of custom function, you can edit them. Here’s how:


Filter Custom Functions

You can find custom functions easily by filtering them by the module for which they were created. To filter custom functions:


Delete Custom Functions

Warning: Deleting a custom function is permanent and cannot be undone. If the custom function you’re deleting is associated with a workflow rule, the workflow rule will not be executed.

If you no longer require certain custom functions, you can delete them. Here’s how:


Schedules

Schedules in Zoho Practice let you automate recurring tasks by configuring flexible recurrence patterns such as date, time, and frequency. Based on these settings, your tasks are executed automatically at the specified intervals.

After creating a task using a simple Deluge script, you can schedule it to run at a specific time or on a recurring basis. Let’s look at a scenario to understand how this works.

Create Schedules

To automate recurring tasks, you need to create schedules. Here’s how:


View Logs

Note: Zoho Practice displays only the logs of the last three months.

You can view logs of the schedules that were triggered in your organization. Here’s how:


Edit Schedules

You can update the details of schedules by editing them. Here’s how:


Mark Schedules as Inactive

If you want to disable the schedules temporarily, you can mark them as inactive. Here’s how:


Mark Schedules as Active

If you require inactive schedules, you can use them by enabling them again. Here’s how:


Delete Schedules

If you no longer require certain schedules, you can delete them. Here’s how: