Custom Function Schedule

You can automate the execution of custom functions at regular intervals of time using Schedules. Custom functions allow users to manipulate data within ServiceDesk Plus Cloud and other external applications. For example, you can configure a schedule to escalate requests that have remained unapproved for a definite time to the stakeholders. You can also regularly sync data between ServiceDesk Plus Cloud and any project management software, such as Zoho Projects.

You can configure schedules for custom functions added under Setup>> Developer Space >> Custom Functions >> Scheduled Functions.

You can associate one or more schedules with each Scheduled function.

 

Scheduling a Custom Function

Go to Setup>> Automation >> Schedules and click New Schedule

  1. Provide a unique name to the schedule and enter a description.
  2. Under Custom Function, choose whether to use an existing custom function (or Scheduled function) or to create a new one.
  3. Click Configure Schedule.
  4. Provide the date and time to start the execution.
  5. Select a frequency to run the custom function. 
  6. Advanced Settings will be available if you've set the custom function to execute periodically (Frequency set to Daily, Weekly, Monthly, or Yearly).
  7. Enable Advanced and manage the settings as follows:
  8.  Under Ends, you can configure to terminate the schedule on a specific date or after a certain number of executions. You can also allow the schedule to execute indefinitely.
  9.  Click Schedule after completing the configuration.
  10. Then click Save on the Schedules home page.

 

Sample Schedule

 

 

Schedules List View

  1. Run a schedule at any instant by clicking the Run Now button beside the schedule. Instant executions will not affect the schedule configurations. 

  2. Perform bulk operations such as DisableEnable, and Delete on schedules using the Actions menu.

  3. Perform operations such as Disable, Enable, and Delete on individual schedules using the Settings menu beside the schedule. You can also use the Toggle button to disable or enable a schedule. 

  4. You can reinitiate a completed schedule by clicking Enable under the Settings menu. You can alternately use the Toggle button to perform the same. Reconfigure the schedule and save it.

  5. View the details of a schedule by clicking it.

Completed and disabled schedules will have their corresponding statuses displayed under the Next Run column on the Schedules home page.