Workflow Rules in Zoho Workerly, are a set of actions (alerts, tasks and field updates) that are executed when certain specified conditions are met. These rules automate the process of sending email alerts, SMS alerts, assigning tasks and updating certain fields of a record when a rule is triggered.
A workflow rule consists of the following elements:
- Basic Details - Specify details on the record type for which the rule applies, rule name, description.
- Rule Trigger- Specify when the rule should be triggered for a record and based on what. There are two options:
- Execute based on a record's action - Rules can be triggered when records are created, edited, created/edited, deleted or a specific fields are updated.
- Execute based on a date field's value - For all the records matching the rule criteria, the rule will be triggered either monthly or yearly based on the value of the date field that is selected.
- Rule Criteria - List out the criteria to filter out records that meet the criteria. Workflow rule is triggered by these records.
- Actions - Specify the action to be automated for records that meet the set criteria.
- Instant Actions - Add alerts, SMS triggers, tasks, field updates, and webhooks that will be triggered immediately when the rule is executed.
- Scheduled Actions - Add alerts, SMS triggers, tasks, field updates, and webhooks that will be scheduled and triggered based on a specified time.
Create Workflow Rules in Zoho Workerly
The steps to create a workflow rule are divided into 4 parts.
Part 1 - Enter the basic details of the rule
- Click (the Settings icon) > Setup > Automation > Workflow Rules.
- In the Workflow Rules page, click Create Rule.
-
In the
Create New Rule popup, do the following:
- Select the Module to which the rule applies from the drop-down list.
- Enter the Rule Name and Description.
- Click Next.
Part 2 - Specify the rule trigger
There are two options based on which the rule will be triggered for a record that matched the rule criteria. One of these options need to be selected when you create a workflow rule and you cannot change it later by editing the rule. They are
- A Record Action - Rules can be triggered when records are created, edited, created/edited, deleted or a specific fields are updated.
- A Date Field's Value - For all the records matching the rule criteria, the rule will be triggered either monthly or yearly based on the value of the date field that is selected.
Execute Based on Record Action
When new temps are created in Zoho Workerly you may want to automatically send an email, SMS alert, or a series of emails at set intervals. You may also want to create tasks for these new Temps. Also, sometimes when specific fields are updated, you may want to trigger a workflow. This execution option lets you specify an action (Create, Edit, Delete, etc.) based on which workflow rules will be triggered.
- Select one of the following:
Note
- When you configure a workflow rule for the Events module, you will see another rule trigger called Cancel.
The Cancel trigger can be chosen when you want to configure a workflow action on the cancellation of an event.
Execute Based on Date Field's Value
You may want to get an email or SMS reminder a week before the assignment's end date or may want to send an email to the clients reminding them of the monthly invoice payment. In these cases, it is not necessary that the records should be created or edited for the rule to get triggered. It is plainly based on the value in the date fields. This execution option lets you pick a date field from a record and allows you to define the day for the rule to be triggered. Please note, with this option, a maximum of 3000 records will be triggered every hour. If there are more than 3000 records, the remaining records will be executed in the next hour. Please note, this option is available only in the Enterprise Edition.
- Choose a Date field from the drop-down list.
All the date fields in the module for which the rule is being created will be listed.
- Choose Before/After from the drop-down list to set the Date of Execution.
The rule can be set to trigger a maximum of 90 days Before or After the Date field specified.
- Specify the time of execution in hours and minutes.
In the case of Date Time fields, there is an option to trigger the rule based on the time in the field value.
- Select the Execution cycle as Once, Every Month or Every Year.
- Click Next.
Note
- A locked rule cannot be edited by other users. If required, they can clone the rule to create another.
- The actions such as alerts, field updates, tasks, etc. associated with a locked rule are also locked and cannot be edited or deleted by users.
- For a rule to be triggered using the Field Update option, both the rule criteria and the execution criteria must be true.
- If your Zoho Workerly account is downgraded or the subscription expired, the workflow rules will be disabled. If you renew the subscription, you will need to manually enable the rules back again.
- When the Delete option is selected as the execution criteria, a workflow rule will not be triggered if records are deleted from the Recycle Bin.
- You can configure and associate only workflow alerts and webhooks to a workflow rule with the execution criteria as Delete.
- Workflow Rules will be triggered when records are modified using Mass Update, Macros and when ownership of records are changed. Rules are also triggered when tasks are created through Macro.
Part 3 - Set rule criteria
- In the Rule Criteria section to specify the rule criteria details.
- Click Add Criteria to add multiple criteria.
- Click Next.
Edit Criteria Patterns
Criteria Pattern Editor in the custom list view helps you to develop the advanced filters using simple logical operators like AND/ OR.
Note
- You can specify a maximum of 25 criteria for a list view.
- If you are associating a convert action (an instant action) to the rule, specifying the criteria is mandatory.
To edit criteria patterns
- Go to Setup > Automation > Workflow Rules.
- In the Workflow Rules page click on a workflow rule.
- In the Edit Rule page, review your existing criteria and click the Edit Pattern link.
- In Pattern Editor box, modify filters and click the Save link.
- Save the modified custom view.
Example:
You would like to trigger a workflow rule for all the temps who are created by a current user and current title is Foreman.
The creator is Current User, and Current Title is Foreman.
You can use the following characters in the Criteria Pattern Editor:
- Round brackets: ( )
- AND/OR operators
- Criteria Row Number
Important Notes
Part 4 - Associate instant AND/OR scheduled actions
Workflow rules are meaningful only if an alert, task, field update, or webhook is associated to the rule. They are grouped under Actions that can either be Instant Actions or Scheduled Actions. These actions once created, can be associated with many rules.
-
In the
Actions section, do the following:
Note that you cannot save a rule without creating either an instant or a scheduled action.
- Create Instant Action by associating alerts, tasks, field updates, or webhooks.
- Create Scheduled Actions and associate alerts, tasks, field updates, or webhooks.
A maximum of 5 scheduled actions can be created.
- Click Save.
Note
- For each action, you can associate a maximum of 5 alerts, 5 tasks, and 3 field updates.
- Similarly, you can associate up to 6 (1 Instant Action and 5 Time-Based Actions) webhooks per workflow rule.
- A maximum of 5 Scheduled Actions (that includes alerts, tasks, field updates, and webhooks) can be created for a rule.
- If your Zoho Workerly account is downgraded or the subscription expired, the workflow rules will be disabled. If you renew the subscription, you will need to manually enable the rules back again.
Associate Actions to Rules
Create Instant Actions
An instant action includes email alerts, SMS triggers, tasks, field updates, and webhooks that are triggered immediately when the rule is executed. There are two options to associate these actions.
- Create alerts, tasks, field updates, or webhooks and associate them with the rule.
- Select existing alerts, tasks, field updates, or webhooks to associate to the rule.
To create an instant action
If you are creating a workflow rule, directly go to step 4
- Click (the Settings icon) > Setup > Automation > Workflow Rules.
- In the Workflow Rules page, click on the rule for which you want to create an action.
- Click Edit to modify the rule settings.
-
Under
Instant Actions section, do the following to associate alerts, tasks, field updates, or webhooks to the rule:
- In the corresponding section, click (the Add icon) and specify the details to create a record and associate it to the rule.
- In the corresponding section, click (the Associate icon) and select an existing record and associate it to the rule.
- Click Save.
Note
- For a workflow rule, all the actions (alerts, tasks, field updates, and webhooks) will not be listed. If the rule is for Temps, only the actions created for Temps will be available for association.
- Only one set of instant action can be created with alerts, tasks, etc. associated with it.
- You can associate a maximum of 5 alerts, 5 tasks, 3 field updates, and 1 webhook to the instant action.
Create Scheduled Actions
Scheduled actions include alerts, tasks, field updates, and webhooks that are triggered on a specified time after the rule is executed. You can schedule the actions to be triggered based on the Rule Trigger Date, record Created Time, record Modified Time as well as other time or date fields in the module. You can see the list of scheduled actions for individual records under "Upcoming Actions".
There are two options to associate these actions.
- Create alerts, tasks, field updates, or webhooks and associate them with the rule.
- Select existing alerts, tasks, field updates, or webhooks to associate with the rule.
To create scheduled actions
If you are creating a workflow rule, directly go to step 4
- Click (the Settings icon) > Setup > Automation > Workflow Rules.
- In the Workflow Rules page, click on the rule for which you want to create an action.
- Click Edit to modify the rule settings.
- Under the Actions section, click Add a Scheduled Action.
- Enter a Name for the scheduled action.
- Specify the Execution Time, i.e. when the associated actions should be triggered.
- Click Save
-
Under
Scheduled Actions section, do the following to associate alerts, tasks, field updates, or webhooks to the rule:
- In the corresponding section, click (the Add icon), specify the details to create a record and associate it to the rule.
- In the corresponding section, click (the Associate icon), select an existing record and associate it to the rule.
- Click Save.
Note
- For a workflow rule, all the actions (alerts, tasks, field updates, and webhooks) will not be listed. If the rule is for Temps, only the actions created for Temps will be available for association.
- You can create a maximum of 5 scheduled actions for a workflow rule.
- Each Scheduled Action can have a maximum of 5 alerts, 5 tasks, 3 field updates, and 5 webhooks.
- If the Email Opt Out option is enabled, emails will not be sent to the temps.
- For the Workflow Management feature, the Organization's Time Zone will be considered for calculating a day. In the absence of the time zone being defined, the Super Administrator's Time Zone will be considered.
- Scheduled Actions are not minute based. There can be a delay of a few minutes for the scheduled actions to be triggered.
- When email alerts reach the limit for the day, any remaining emails to be sent the same day will not be sent.
- If the Execution Time that is calculated is a time in the past, then the action will be triggered immediately. There can be a delay of a few minutes for the scheduled actions to be triggered.
- The scheduled actions for a record will be listed under Upcoming Actions in the Records Details Page.
Notes on Per Day Limits
- (No. of Users * 100) or 5000, whichever is lower, will be taken as the maximum limit per day for emails to be sent using workflow alerts.
- A maximum of 300 actions will be triggered every hour. If there are more than 300 actions per hour, the remaining actions will be executed in the next hour.
- The Super Administrator of your Workerly account will be notified if the workflow email alerts limit is exceeded for the day.
- The per day limits (for e.g.: email limit) is calculated based on PST
-
Limits for Webhooks:
- Professional Edition - 10000 calls/day or 100 calls/user license (whichever is lower).
- Enterprise Edition - 10000 calls/day or 100 calls/user license (whichever is lower).
Instances when the scheduled actions will be rescheduled
- The Execution Criteria for the Rule is either Edit or Create or Edit. When the rule criteria is satisfied for a record, the instant actions are triggered and scheduled actions are scheduled for the record.
If a user edits the record and the rule criteria are not fulfilled, then the scheduled actions scheduled earlier will be deleted. If the record is edited again and the criteria are satisfied, then the scheduled actions will be rescheduled.
- For Scheduled Actions, the Execution Time can also be based on the custom Date & Time field. When a rule criterion is satisfied for a record, the instant actions are triggered and scheduled actions are scheduled for the record.
If a user edits the record to change the value of the date & time field, the scheduled actions will be rescheduled as per the new date & time value.
Instances when scheduled actions will be deleted or not be rescheduled
- The Execution Criteria for the Rule is either Edit or Create or Edit. When the rule criteria are satisfied for a record, the instant actions are triggered and scheduled actions are scheduled for the record.
If a user edits the record but the rule criteria are not fulfilled, then the scheduled actions will not be scheduled again.
- When the Enterprise Edition is downgraded to the Free Edition, all the scheduled actions that are scheduled for the record will be deleted.
- When records are deleted, all the scheduled actions scheduled to the record will also be deleted. If the deleted records are restored, the scheduled actions will not be rescheduled.
Instances when the Scheduled actions will not be executed
- When an event is cancelled, all the scheduled actions scheduled for that event will not be executed.
Lock Workflow Rules
When you want to make sure that no one edits a workflow rule unless absolutely necessary, you can lock the rule. When a rule is locked, it cannot be edited. One has to unlock the rule in order to edit it again. A locked rule sends out the message to fellow administrators that it is not meant to be edited unless absolutely required. A workflow rule can be locked after it has been created.
To lock a workflow rule
- Click (the Settings icon) > Setup > Automation > Workflow Rules.
- From the Workflow Rules list view under the Rules tab, click the rule that you wish to lock.
- In the selected workflow rule details page, click the Lock icon next to the rule name.
- In the Lock Rule popup, enter the reason for locking the rule. This message will be displayed to fellow administrators who are trying to unlock the rule for editing.
- Click Lock.
Note
- Only Administrators can lock/unlock a workflow rule. This option is available so that other users are not able to edit or delete the rule. If required others can clone the workflow rule.
- A rule can be unlocked by following the same procedure. In a workflow rule's details page, you can click the Unlock icon and proceed to edit the rule.
Use List View & Summary View
There are two views for workflow rules that are created - the ListView and the Summary View. By default, you will see the list view, which is a list of all the workflow rules for All modules/Selected module.
The Summary view lists out the Criteria and Field Updates associated with the rules that will help you get a clear picture of all the rules and where they are used to avoid any confusion.
Note
- You need to select a module to check the summary view. This view is not available when you select the "All Modules" option.
- The Summary View is available only for the workflow rules and not for the alerts, tasks and field updates.
- In the List View, you can reorder the rules to change the sequence in which the rules need to be executed. The Reorder option will be available only after you select a module from the drop-down list.
To use summary view
- Click (the Settings icon) > Setup > Automation > Workflow Rules.
- In the Workflow Rules page, select a module from the drop-down list.
- Click Summary View icon.
All the rules for the selected module will be listed along with the Criteria and the associated Field Updates. You can click the Show More link to see the other items associated with the rule.
Delete Workflow Rules
Workflow rules can be deactivated when not in use. You can also delete the unwanted workflow rules.
Note
- When you delete a workflow rule, all the scheduled actions for the records will also be deleted.
To delete workflow rules
- Click (the Settings icon) > Setup > Automation > Workflow Rules.
- In the Workflow Rules page, click the Delete icon for the corresponding rule.