Schedules are automated user-defined actions, which can be executed through custom functions either at a particular time or on a recurring basis. For example, using schedules, you can create a new ticket/task on a recurring basis or send reminders about a weekly meeting to agents.
Scheduling also allows you to:
- Assign unassigned tickets at the end of the day to specific agents.
- Alert agents on reaching a preconceived threshold of tickets assigned to them.
- Reassign tickets from offline agents to available agents periodically.
- You can create a maximum of 250 active schedules in your account.
- Only users with Helpdesk Automation permission can access this feature.
Creating Schedules
You can create a schedule in four simple steps, as follows:
- Enter the schedule name
- Choose the execution date and time
- Choose the schedule frequency
- Associate or create a new custom function
To create a new schedule:
- Click the Setup icon ( ) in the top bar.
- On the Setup Landing page, click Schedules under Automation.
- On the Schedules page, click New Schedule in the upper-right corner.
- In the Add Schedule page, do the following:
- Click the Execute On field to specify the date and time at which the function should be executed.
- Set the schedule frequency from under the Repeat drop-down field.
You can execute the schedule either once (select, Never) or on an hourly, daily, weekly, monthly, or yearly basis. - Select the Custom option to run the schedule either on any specific hour/day/week/month/year along with recurring frequency and end point.
- Click Associate Function to choose the function to be associated with the schedule.
You can also click Create Function to write a new function using our Deluge Script Editor.
- Click Save.
Writing Custom Function
Every schedule must be associated with a custom function. Using our Deluge Script Editor, you can write your own custom function and schedule it to execute periodically.
Note:
- You can add custom help desk variables as an argument while creating custom functions for a schedule.
Running Schedules - Manually
You can manually run the scheduled function whenever required using the Run Now option. This option will execute the function associated with the schedule once immediately.
To run a schedule manually:
- Click the Setup icon ( ) in the top bar.
- On the Setup Landing page, click Schedules under Automation.
- On the Schedules page, click the More icon ( ) corresponding to the schedule you want to run manually.
- Select the Run Now option from the menu.
The schedule will be executed immediately.
Note:
- You are allowed to trigger the schedule manually only twice per day.
- Only active scheduled can be run manually.
Logs
Every schedule's execution details, whether it was a failure or successful, will be displayed under the Logs tab. You can also filter the logs to focus on the data you want to see. For example, you can filter the logs stream by a schedule, status, or a particular period.
To access the logs:
- Click the Setup icon ( ) in the top bar.
- On the Setup Landing page, click Schedules under Automation.
- On the Schedules page, 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.
- Click the Filter icon ( ) in the upper-right corner to open the filter options.
You can choose to filter the logs stream by a schedule, status, or a particular period. - Click Search to filter the logs.
Note:
- Click the More icon ( ) corresponding to a schedule and then click View Logs to see logs specific to a schedule.
- Clicking Close will reset the filters to the default values.
Important
- More than one schedule cannot have the same name.
- 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.