Help documentation

Workflow Rules

Using Automation, you can trigger actions like emails/SMS or automate functions whenever certain conditions are satisfied in the expense report.

 A good example would be the case where a notification e-mail is sent automatically to the finance head when an expense report exceeds the threshold limit.

In this section you will learn how to

To get started with workflows, navigate to Settings > Automation.

Setting up a new workflow rule

While setting up a workflow, you elaborate the conditions based on which the actions are triggered. You can associate more than one action with a workflow. To set up a workflow rule in Zoho Expense, navigate to Settings > Automation > Workflow Rules. In the next few steps, you will learn how to:

Name your workflow

Name your workflow

Choosing when to trigger a workflow

As the name suggests, here, you can choose to trigger the workflow when an event has occurred (Event-Based) or in a few days before/after a particular date (Date-based).

Workflows are mainly of two types:

Event based:

Event based workflow

Field Description
Exeute the workflow when
  • When any field is updated.
  • When any selected field is updated.
  • When all selected fields are updated.

Event based workflow

Date based:

Date based workflow

Field Description
Date of Execution: Triggers the workflow on any number of days before or after the submitted date, Last submitted date and so on.
Execution Time: Choose the exact time of execution by providing the hour (HH) and the minute(MM)
Execution cycle: Choose the frequency of triggering a workflow. It can be Just Once, Once in a Month(Monthly) or Once in year(Yearly)

Setting additional triggers

Aside from the primary Event and Date based triggers, you can further optimize the triggers by setting additional filters. These filters are optional and one or more conditions can be set in these filters based on which the action will be executed. Multiple conditions can be set by using ‘AND’ (or) ‘OR’ based on which we can specify whether both the conditions or at least one of the conditions should be satisfied.

Name your workflow

Perform the following steps to set additional triggers:

For example, if you select alphanumeric field like ‘Projects’, it would look like this:

Values for alphanumeric values

If you select numeric field like submitted date, these are your options:

Values for numeric values

Editing Criteria Pattern

For instance, you want to set up a workflow such that an email alert is sent to the Admin whenever Mark submits a report greater than $2000, or when he submits a report containing “Atrium Solutions’ as a Customer.

In this case, you would set it up as follows:

The criteria would look like this.

editing the criteria

i.e, the workflow will be triggered if the Owner of the report is Mark and the report total is greater that $2000. Or, it will be triggered when the customer is ‘Atrium Solutions’, irrespective of the owner of the report or the report total.

On changing the criteria

Associating actions with the workflow

Once you set up the triggers, the next step is to associate actions with the workflow. These include Email Alerts and Webhooks. You can customize the actions to suit your business needs and program it to act immediately (Immediate actions) or at a particular time (Time based actions).

Immediate Actions: The actions would occur immediately when the report meets the criteria mentioned in the workflow.

Associating actions with workflow

Time Based actions: If you wish to schedule actions for a particular time, select the check box next to Would you like to add time based actions?. This will display additional fields to enter the desired time.

Time based actions in workflow

Note : You can add a maximum of 5 time based actions. Also, each time based action can have a maximum of 5 actions.

Edit / Delete a workflow rule

You can edit or delete a workflow rule by simply clicking on one of the workflow rules from the list or by hovering over a workflow rule and select edit or delete.

Edit and delete workflow

Note: You can create a maximum of 10 workflow rules.

Email Alerts

E-mails alerts that are triggered during the workflow can be customized corresponding to the respective scenario. For example, an e-mail template can be created to notify the finance head when the report total of a particular project had exceeded the specified limit. We can save this e-mail template under a relevant name and use it in a workflow as and when required.

Email alert with workflow

The following steps will explain how to set up an email alert for any report in Zoho Expense.

Creating email alert

Field Description
Name Give a unique name for the email alert.
Email Template You can pick a template from the drop down or click on +Add New Email Template if you wish to create a new one.
Email Recipients Pick contacts from the drop down, to whom you wish to send the email alerts.
Additional Recipients If you wish to send out email alerts to more people, enter their email addresses separated by a comma. Please not that you can add a maximum of 10 additional recipients.

Other Actions :

Delete an email alert :

To delete an email alert, hover the cursor next to an email alert on the list and click on the Trash icon.

Deleting your email alert

Note: You can create a maximum of 5 email alerts for each workflow rule. A maximum of 500 email alerts can be triggered per day.

Webhooks

Webhooks facilitates communication with third-party applications by sending instant web notifications every time an event occurs in Zoho Expense. With Webhooks, you can configure both HTTP & HTTPS URLs and associate them in workflow rules to automate the entire notification process.

Webhooks with workflow

For example, you can associate your Zoho Expense account with an SMS provider using Webhook, so that the manager is notified through a message automatically if the total expense amount for a report exceeds $1000. For general information about webhooks, please refer to webhooks.org.

To set up a webhook, navigate to Settings > Automation > Webhooks and click +New Webhook.

Creating webhooks

Field Description
Name Give a unique name for the webhook.
Description Give a small description for which you wish to create a webhook.
URL to notify Enter the URL of the external service provider’s API. For example, if you’re using a SMS gateway to send automated messages, the URL would be http://api.smsgateway.com/http/sendmsg
Method Specify the function you want to call at the external service
  • POST : Requests that data sent must be considered new.
  • PUT : Requests that data sent should be considered as a modified version of the one already present.
  • DELETE : Requests that the data must be deleted.
Entity Parameters
  • Append All Parameters : Select this option to send all parameters from Zoho Expense to the external service.
  • Append Selected Parameters : Select this option to send selected parameters from Zoho Expense to the external service.
Custom Parameters You can add custom parameters. In the webhook such as API Key, Auth Token, etc. based on which the URL will be appended. Enter the required parameter under Parameter Name and the corresponding value under Parameter Value. If you wish to add multiple parameters, select +Add Custom Parameters.
URL Preview The URL generated for this webhook will be displayed here.

Other Actions :

Edit / Delete a webhook :

To edit or delete a webhook, hover the cursor next to the corresponding webhook on the list and click the edit or delete on the far right.

Deleting your webhook

Note: A maximum of 500 webhooks can be triggered per day

Field Updates

Using Field updates, you can automatically make changes to certain fields when the workflow criteria is fulfilled.

Field Updates

Field Updates

Field Updates

Other Actions :

Edit / Delete a field update :

To edit or delete a field update, hover the cursor next to the corresponding field update on the list and click the edit or delete on the far right.

Deleting your field update

Did you find what you were looking for?
Thank you for your feedback!
TOP
Request a demo

*
*
*
*
Request Demo