You can schedule the script execution at a specific date and time, or on a regular basis with a certain frequency.
To create a scheduled script, complete the steps below:
Navigate toSystem Scheduler → Schedule Script.
ClickNewand fill in the fields.
ClickSaveorSave and exitto apply the changes.
Schedule script form fields
Field
Mandatory
Description
Name
Y
Specify the scheduled script name.
Run as
Y
Select a user to run the script as. Make sure that the specified user has sufficient rights to perform CRUD transactions, defined in the script.
Active
N
Select this checkbox to activate the script.
Job
N
Add a description of actions performed by the script.
Script
N
Type in a script to execute.
Run frequency
Y
Select the run frequency. Available options:
On Demand – the script is only executed upon a user's request. If this option is selected, the Execute button appears in the upper right corner of the form. Click it to run the script.
Periodically – the script is run regularly with a frequency set by the Run period field.
Once – the script is run once on the date and time specified in the Run date and time field.
Daily – the script is run daily at the time specified in the Run time field.
Weekly – the script is run each week on the selected Day of week at the time specified in the Run time field.
Monthly – the script is run each month on the selected Day of month at the time specified in the Run time field.
Run period
Y
Specify the period between script runs (days, hours, minutes, or seconds).
This field appears when thePeriodicallyoption is selected in theRun frequency field.
Run time
Y
Specify the time when to execute a script. The script is executed regularly at this time.
This field appears when theDaily,Weekly, Monthly options are selected in theRun frequencyfield.
Run date and time
Y
Specify the date and time of the script execution.
You can set the current date and time by clickingNowin the date-picker.
This field appears whenPeriodically or Once options are selected in theRun frequencyfield.
Day of week
Y
Specify a day of the week on which the script should run. For example, selectFriday.
This field appears when theWeekly option is selected in theRun frequencyfield.
Day of month
Y
Specify a day of the month on which the script should run. For example, select13for the 13th day of the month.
This field appears when theMonthly option is selected in theRun frequencyfield.