Defining a Recurring Scheduled Script Deployment
Scripts are scheduled in SuiteCloud Development Framework (SDF) using recurrence fields on the scriptdeployment
field in the scheduledscript
object.
Additional information about scheduled script deployment can be found in Scheduled Script Submission.
SDF includes the following validations for recurrence fields:
-
The date and time format must be specified in the correct format. For information about date and time formats, see Date and Time Formats in SDF Custom Objects.
-
Only a single recurrence field can be specified for each script deployment.
The following table contains descriptions for the recurrence fields. For a list of possible values, see the reference documentation for recurrence in the scheduledscript
element in SuiteCloud Development Framework XML Reference.
Recurrence Fields |
Description |
---|---|
|
Schedules the script to deploy every x number of days, with a start date and end date. The event can repeat. |
|
Schedules the script to deploy every week day, with a start date and end date. The event can repeat. |
|
Schedules the script to deploy every x number of months, with a start date and end date. The event can repeat. |
|
Schedules the script to deploy on a day of the week every x number of months, with a start date and end date. The day of the week can be specified based on its placement. For example, first, second, third, fourth, or last. The event can repeat. |
|
Schedules the script to deploy as a single event with a start date and start time. The event can repeat. |
|
Schedules the script to deploy every x number of weeks, with a start date and end date. Specific days of the week are Boolean fields. The event can repeat. |
|
Schedules the script to deploy every year with a start date and end date. The event can repeat. |
|
Schedules the script to deploy every year based on a day of the week, with a start date and end date. The day of the week can be specified based on its placement. For example, first, second, third, fourth, or last. The event can repeat. |
Recurrence Examples
The following table contains examples of fields used for recurring schedule events.
Recurrence Field |
Example |
Description |
---|---|---|
|
|
Schedules the script to deploy every 3 days, starting August 27, 2020 at 12:00 a.m Eastern Standard Time (North America). The script deployment repeats after 12 hours. The recurrence ends August 27, 2021. |
|
|
Schedules the script to deploy every weekday, starting September 27, 2020 at 12:00 a.m. The script deployment repeats after 15 minutes. The recurrence ends October 24, 2021. |
|
|
Schedules the script to deploy every month, starting December 21, 2020 at 12:00 a.m. The script deployment repeats after 30 minutes. The recurrence ends June 21, 2021. |
|
|
Schedules the script to deploy the last Friday of every second month. The start date is September 15, 2020 at 12:00 a.m. The script deployment repeats after 8 hours. The recurrence ends August 16, 2021. |
|
|
Schedules the script to deploy on July 27, 2020 at 12:00 a.m. The script deployment repeats after 2 hours. |
|
|
Schedules the script to deploy every week on Tuesday, Thursday, Friday, and Sunday. The start date is November 27, 2020 at 12:00 a.m. The script deployment repeats after 1 hour. The recurrence ends October 27, 2021. |
|
|
Schedules the script to deploy every year starting June 18, 2020 at 12:00 a.m. The script deployment repeats after 30 minutes. The recurrence ends June 18, 2025. |
|
|
Schedules the script to deploy the Monday of every third week, starting July 25, 2020 at 12:00 a.m. The script deployment repeats after 12 hours. The recurrence ends August 27, 2021. |