Note
- The start date of a schedule should not exceed one year from the current date.
- Functions should not exceed ten thousand lines of execution.
- Functions should run within a span of 5 mins.
- A maximum of 250 active schedules can be created in a Zoho Desk account. This limit applies across the entire account and includes schedules from all departments; it is not department-specific.
- Each department can have up to 10 schedules.
Creating schedules
Custom actions can be scheduled in two ways: by associating an existing custom function or by creating a new custom function directly from the Schedules page.
To create a schedule
- Navigate to Setup > Automation > Schedules.
- On the Schedules page, click New Schedule.
- In the Add Schedule page, do the following:
- Provide Schedule Name and Description
- Click on Execute On to define the date and time at which the function should be executed.
- Click Repeat to set the schedule frequency or select Never
- Every Hour
- Every Day
- Every Week
- Every Month
- Every Year
- Custom
- Select Function that need to be scheduled
- Click Associate Function to choose an existing custom function.
- Or click Create Function to write a new function using the Deluge Script Editor.
- Click Save.
Writing a custom function
Schedules enable administrators to execute custom functions at predefined times or at regular intervals. Custom functions are created using the Deluge Script Editor, allowing administrators to define custom logic and configure it to run automatically through time-based scheduling.
Manual execution of schedules
Not all custom functions need to wait for their scheduled execution time. In many business scenarios, certain custom function rules must be triggered immediately. Waiting for the next scheduled run, or creating a new schedule just to execute the function instantly is not always practical. To address this, automation provides a quick way to manually execute the rule whenever required.
Note:
- Manual execution of a schedule is permitted only twice per day.
- Only active schedules can be triggered manually.
To run a schedule manually
- Navigate to Setup > Automation > Schedules.
- Click the More icon corresponding to the schedule that needs to be executed manually.
- Select the Run Now option from the menu.
Managing schedule logs
All execution details for schedules, whether successful or failed are displayed in the Logs tab. The logs can be filtered to view specific information, such as entries for a particular schedule, execution status, or a selected time period.
To view logs for a specific schedule, select the More icon corresponding to the schedule and click View Logs.
To access the schedule logs
- Navigate to Setup (
) > Automation > Schedules. - Click the Logs tab. (Log entries for all schedules that were run for the last seven days, irrespective of their status, will be listed by default).
To filer schedule logs
- Click the Filter (
) icon in the upper-right corner to open the filter options. - Choose to filter the logs stream by a schedule, status, or a particular period.
- Click Search to filter the logs.
Clicking Close will reset the filters to the default values.