## Zoho Payroll Documentation Index

Access the complete documentation index at:
https://www.zoho.com/in/payroll/llms.txt

Use this file to discover all available documentation pages before proceeding.

# Workflow Rules

 ![](/payroll/images/ue-resources/llm-utility-menu/sparkle-ai.svg) Explore With AI ![](/payroll/images/ue-resources/llm-utility-menu/dd-arrow.svg) 

*   [Open in ChatGPT (opens in new tab)](https://chatgpt.com/?prompt=Analyze+the+content+of+https%3A%2F%2Fwww.zoho.com%2Fin%2Fpayroll%2Fhelp%2Femployer%2Fsettings%2Fautomation%2Fworkflow-rules.html+and+understand+it+thoroughly+so+I+can+ask+questions+about+it.)
*   [Open in Claude (opens in new tab)](https://claude.ai/new?q=Analyze+the+content+of+https%3A%2F%2Fwww.zoho.com%2Fin%2Fpayroll%2Fhelp%2Femployer%2Fsettings%2Fautomation%2Fworkflow-rules.html+and+understand+it+thoroughly+so+I+can+ask+questions+about+it.)
*    ![Copy for LLM](/payroll/images/ue-resources/llm-utility-menu/copy.svg) Copy for LLM
*    [![View as Markdown](/payroll/images/ue-resources/llm-utility-menu/md.svg) View as Markdown (opens in new tab)](/in/payroll/help/employer/settings/automation/workflow-rules.md)

You can automate tasks such as sending emails, triggering in-app notifications, updating fields, and triggering webhooks or functions by creating workflow rules in Zoho Payroll. A workflow rule executes automatically once the conditions you define are met.

**Scenario:** Ravi, the payroll manager at Zylker Inc, wants to automatically notify the finance team every time a new pay run is created. He sets up a workflow rule in Zoho Payroll so that whenever a pay run is created, an email alert is triggered and sent to the finance team automatically, saving time and ensuring no pay run goes unnoticed.

* * *

## Create a New Workflow Rule

To create a new workflow rule:

*   Click **Settings** in the left sidebar.
*   Click **Workflow Rules** under _Automations_.
*   Click **\+ New Workflow Rule** in the top right corner.

![New Workflow Rule Button in Zoho Payroll](/payroll/help/in/settings/automation/workflow-rules/new-workflow-rule-cta.png)

### Name Your Workflow

In the _New Workflow Rule_ popup, fill in the following fields:

*   **Workflow Rule Name:** Enter a name for the workflow rule.
*   **Description:** Add a description if necessary.
*   **Module:** Select the module for the workflow rule from the dropdown, such as **Employees**, **Pay Runs**, **Loans**, **Reimbursement Claims**, or **Custom Modules**.
*   Click **Next**.

![New Workflow Rule popup](/payroll/help/in/settings/automation/workflow-rules/new-workflow-rule-popup.png)

### Choose When to Trigger

Under _WORKFLOW RULE EXECUTION CONDITION_, select the **Workflow Type** to specify how and when the workflow should be triggered:

**Event Based**

The workflow will be triggered immediately when a specific action occurs on a record. Select the **Action Type** that triggers the workflow rule:

*   **Created:** The workflow will be triggered when a new record is created.
*   **Edited:** The workflow will be triggered when an existing record is edited.
*   **Created or Edited:** The workflow will be triggered when a record is created or edited.
*   **Deleted:** The workflow will be triggered when a record is deleted.

![Event Based workflow type with Action Type dropdown](/payroll/help/in/settings/automation/workflow-rules/event-based-workflow-in-zoho-payroll-automation.png)

If you choose an edited or created-or-edited 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:

*   **When any field is updated:** The workflow will be executed when any field in the selected module is updated.
*   **When any selected field is updated:** Select up to three fields. The workflow will be executed whenever any of the selected fields are updated.
*   **When all selected fields are updated:** Select up to three fields. The workflow will be executed only when all the selected fields are updated.
*   **Any selected field is not updated:** Select up to three fields. The workflow will be executed if any of the selected fields are not updated.
*   **All selected fields are not updated:** Select up to three fields. The workflow will be executed only if none of the selected fields are updated.

**Note:** The **Execute the workflow when** and **Execute when the record is** fields will only appear when the action type involves editing.

**Execute when the record is:** Choose when the workflow should be triggered based on how often the record is edited:

*   **Edited for the first time:** The workflow will be executed only the first time the record is edited after it is created.
*   **Edited each time:** The workflow will be executed every time the record is edited.

**Date Based**

The workflow rule will be triggered on a specific date or relative to a date field in a record.

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

Fill in the following fields:

*   **Date of Execution:** The date at which the workflow will be triggered. You can choose to trigger the workflow on any number of days before or after a date field in the record.
*   **Execution Time:** Choose the exact time at which the workflow rule should be triggered.
*   **Execution Cycle:** Choose the frequency at which the workflow should be triggered. The following options are supported: **Once**, **Daily**, **Weekly**, **Monthly**, **Yearly**.
*   Click **Next** after entering the required details.

![Date Based workflow type with Action Type dropdown](/payroll/help/in/settings/automation/workflow-rules/date-based-workflow-in-zoho-payroll-automation.png)

### Add Criteria

You can use criteria to ensure the workflow runs only when specific conditions are met. To add criteria:

*   Click **\+ New Criteria** to create a new criteria for the workflow rule.

![New Criteria CTA](/payroll/help/in/settings/automation/workflow-rules/new-criteria-for-workflow-rule-execution.png)

*   In the panel that appear, click **Yes** to add criteria or **No** to skip.
*   Select a field, the comparator, and enter the necessary value.
*   Click **\+ Add Criterion** or **+** to create additional criteria if necessary.
*   If you add multiple criteria, select either **AND** or **OR** from the dropdown based on how you want the criteria to work. You can also edit the criteria pattern manually in the _CRITERIA PATTERN_ field.
*   Toggle **Use formula** if you want to define criteria using a formula instead.
*   Once you have added the necessary criteria, click **Done**.

![Add Criteria for Workflow Rule in Zoho Payroll](/payroll/help/in/settings/automation/workflow-rules/add-criteria-for-workflow-rule.png)

**Note:** You can create up to 10 criteria for one workflow, and within each criterion, you can add up to 10 conditions.

### Add Actions

Once you set up the triggers, associate actions with the workflow. You can choose to trigger the actions immediately when the conditions are satisfied or at a particular time:

**Immediate Actions**

Triggers actions immediately when the criteria are met.

*   Click **Immediate Actions** on the criteria row.

![Immediate Actions CTA in Workflow Rules](/payroll/help/in/settings/automation/workflow-rules/immediate-actions-for-workflow-rule.png)

*   In the _Associate Immediate Actions_ sidebar, select the type of workflow action from the **Action Type** dropdown. The available action types are:
    *   **Email Alerts**: Send automated email notifications.
    *   **Webhooks**: Send data to an external URL.
    *   **Functions**: Execute a Deluge script.
    *   **In-App Notifications**: Notify users within the application.
    *   **Lock**: Lock the record to prevent further edits.
    *   **Unlock**: Unlock a previously locked record.
*   From the **Name** dropdown, choose an existing action, or click **\+ Add New \[Action Type\]** to create a new one.
*   Click **\+ Add New Action** to add more actions if necessary.
*   Click **Associate** to finish associating actions with the criteria.

![Associate Immediate Actions CTA in Workflow Rules](/payroll/help/in/settings/automation/workflow-rules/associate-immediate-actions-for-workflow-rule.png)

**Time Based Actions**

Triggers actions based on the scheduled time.

*   Click **Time Based Actions** on the criteria row.

![Time-Based Actions CTA in Workflow Rules](/payroll/help/in/settings/automation/workflow-rules/time-based-actions-for-workflow-rule.png)

*   In the sidebar, set the _EXECUTION TIME_ for when the action will be executed.
*   Select the type of workflow action from the **Action Type** dropdown, then choose the action from the **Name** dropdown.
*   Click **\+ Add New Action** to add more actions if necessary.
*   Click **Associate** to finish associating actions with the criteria.

![Associate Time-Based Actions CTA in Workflow Rules](/payroll/help/in/settings/automation/workflow-rules/associate-time-based-actions-for-workflow-rule.png)

After configuring your actions, click **Save** to finalise and save the workflow rule, or click **Save as Draft** to save it without activating.

Once the workflow rule is saved, whenever an action occurs that matches the trigger you configured, the rule will execute and the specified actions will take place.

* * *

## Change the Execution Order of Workflow Rules

If you have multiple workflow rules for the same module, you can reorder them to control the sequence in which they are executed. To reorder:

*   Click **Settings** in the left sidebar.
*   Click **Workflow Rules** under _Automations_.
*   Select the module where you want to change the order by clicking the **Module** dropdown.
*   Click **Change Execution Order** in the top right corner.

![Change Execution Order of Workflow Rules in Zoho Payroll](/payroll/help/in/settings/automation/workflow-rules/change-execution-order-of-workflow-rules.png)

*   Pick and reorder the rules based on your preference.
*   Click **Save Reorder**.

* * *

## Edit a Workflow Rule

*   Click **Settings** in the left sidebar.
*   Click **Workflow Rules** under _Automations_.
*   Hover over the workflow rule you want to edit and click **Edit**.

![Edit Workflow Rule in Zoho Payroll](/payroll/help/in/settings/automation/workflow-rules/edit-workflow-rule.png)

*   Make your changes and click **Save**.

* * *

## Mark a Workflow Rule as Inactive

If you will not be using a workflow rule for a while but want to keep it for future use, you can mark it as inactive instead of deleting it. To mark a workflow rule as inactive:

*   Click **Settings** in the left sidebar.
*   Click **Workflow Rules** under _Automations_.
*   Hover over the workflow rule you want to mark as inactive, click the dropdown to the right, and select **Mark as Inactive**.

![Mark Workflow Rule as Inactive in Zoho Payroll](/payroll/help/in/settings/automation/workflow-rules/mark-workflow-rule-as-inactive.png)

* * *

## Mark a Workflow Rule as Active

If you need a workflow rule that was previously marked as inactive, you can enable it again. To mark a workflow rule as active:

*   Click **Settings** in the left sidebar.
*   Click **Workflow Rules** under _Automations_.
*   Hover over the inactive workflow rule, click the dropdown to the right, and select **Mark as Active**.

![Mark Workflow Rule as Active in Zoho Payroll](/payroll/help/in/settings/automation/workflow-rules/mark-workflow-rule-as-active.png)

* * *

## Configure Usage Limit Notification

You can set threshold-based notifications to stay informed when your workflow actions approach their daily usage limits. When the number of triggered actions crosses the threshold you set, Zoho Payroll notifies the specified recipients.

To configure usage limit notifications:

*   Click **Settings** in the left sidebar.
*   Click **Workflow Rules** under _Automations_.
*   Click **Configure Usage Limit Notification** in the top right corner.
*   In the _Configure Usage Limit Notification_ popup, set the threshold percentage for each action type:
    *   **Email Alerts**
    *   **Webhooks**
    *   **Functions**
*   Select the **Email Recipients** who should be notified.
*   Click **Save**.

![Configure Workflow Rules Usage Limit Notifications in Zoho Payroll](/payroll/help/in/settings/automation/workflow-rules/configure-workflow-rule-usage-limit-notification.png)

**Note:** Admins will also receive in-app notifications when any workflow action crosses the specified threshold.

* * *

## View Workflow Actions Usage Stats

Zoho Payroll 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:

*   Click **Settings** in the left sidebar.
*   Click **Workflow Rules** under _Automations_.

The total and triggered counts of functions, webhooks, and email alerts for the day will be displayed in the _Usage Stats (per day)_ section at the top of the page.

![View Workflow Actions Usage Stats in Zoho Payroll](/payroll/help/in/settings/automation/workflow-rules/usage-of-workflow-rules.png)

* * *

## Filter Workflow Rules

You can quickly find workflow rules by filtering them by module or status. To filter:

*   Click **Settings** in the left sidebar.
*   Click **Workflow Rules** under _Automations_.
*   To filter by module, click the dropdown next to **Module** and select the required option.

![Filter Workflow Rule by Module](/payroll/help/in/settings/automation/workflow-rules/filter-workflow-rules-by-module.png)

*   To filter by status, click the dropdown next to **Status** and select the required option.

![Filter Workflow Rule by Status](/payroll/help/in/settings/automation/workflow-rules/filter-workflow-rules-by-status.png)

* * *

## Delete a Workflow Rule

*   Click **Settings** in the left sidebar.
*   Click **Workflow Rules** under _Automations_.
*   Hover over the workflow rule you want to delete, click the dropdown to the right, and select **Delete**.

![Delete Workflow Rule in Zoho Payroll](/payroll/help/in/settings/automation/workflow-rules/delete-workflow-rule.png)

*   In the popup that follows, click **Yes** to confirm.

* * *

## Related Topics

*   [Email Alerts](/in/payroll/help/employer/settings/automation/workflow-actions/email-alerts.html)
*   [In-app Notifications](/in/payroll/help/employer/settings/automation/workflow-actions/in-app-notifications.html)
*   [Field Updates](/in/payroll/help/employer/settings/automation/workflow-actions/field-updates.html)
*   [Webhooks](/in/payroll/help/employer/settings/automation/workflow-actions/webhooks.html)
*   [Functions](/in/payroll/help/employer/settings/automation/workflow-actions/functions.html)
*   [Schedules](/in/payroll/help/employer/settings/automation/schedules.html)
*   [Workflow Logs](/in/payroll/help/employer/settings/automation/workflow-logs.html)