|
Custom SchedulesCustom Schedules enable you to access any data from ServiceDesk Plus MSP and schedule periodic customized actions such as sending notifications, reopening requests, or updating asset details. You can also synchronize ServiceDesk Plus MSP data with other third-party applications to perform various actions, such as send mailer campaigns to requesters at regular intervals.
Role Required: SDAdmin
How are customized actions scheduled in ServiceDesk Plus MSP?
Configuring Custom SchedulesGo to Admin > Automation > Custom Schedules and click New. The New Custom Schedule form will be displayed. Use the following pointers to configure a custom schedule:
Step 1: Fill out the Custom Schedule Details
Step 2: Configure Action
The query report visibility must be set as Public. Private reports cannot be fetched into Custom Schedules.
Step 3: Configure Schedule Info
Choose the frequency to repeat the custom schedule from the Repeat drop-down. Custom Schedules will be executed irrespective of the operational hours.
How are query reports converted as arguments?Let's assume the query report SLA Violated Requests by High Priority gives the following result:
While executing scriptsWhen the schedule starts, the query report results are saved as an individual JSON file under [SDPMSP_Home]/integration/custom_schedule_reports/ directory. The result JSON is an array of JSON objects, one JSON object for each row. Each JSON object has column names as the keys and corresponding data as the values as shown below: [
The JSON file paths of the reports are passed to the as arguments to Custom Schedule Executor. After the action is executed, the JSON file will be deleted.
While executing custom schedules functions
When the schedule starts, the associated query reports are generated.
The report can be fetched into a custom scheduled function using reportObj.get("Report_Name"); command. To fetch the report data, use the following command: dataObj = reportObj.get("Report_name");
If the report contains multiple columns, the report columns can be fetched as using a loop:
for each data in dataObj{
You can then specify the API call to perform an action, such as closing the request. When a custom schedule is executed, the custom schedules function fetches the report and executes the API function on the report data in the data object.
View Custom Schedule Results
The Custom Schedules list view displays the configuration details as follows:
The Result column in the Custom Schedules list view has the latest output of the corresponding action.
Use Cases for Custom Schedules
You can use Custom Schedules to periodically:
|