Scheduled Script Example

The following is an XML definition example of a scheduled script object in SuiteCloud Development Framework (SDF).

The scheduled script object contains a script deployment that is scheduled to deploy the script on the second Monday of every month, starting October 10, 2020 at 1:00 a.m. The recurrence ends April 10, 2021.

For more information about scheduled scripts, see SuiteScript 2.x Scheduled Script Type.

          <scheduledscript scriptid="customscript_tps_scheduled_script">
  <defaultfunction>http</defaultfunction>
  <description></description>
  <isinactive>F</isinactive>
  <name>TPS Scheduled Script</name>
  <notifyadmins>F</notifyadmins>
  <notifyemails></notifyemails>
  <notifyowner>T</notifyowner>
  <scriptfile>[/SuiteScripts/TPScheduledScript.js]</scriptfile>
  <scriptdeployments>
    <scriptdeployment scriptid="customdeploy1">
      <isdeployed>T</isdeployed>
      <loglevel>AUDIT</loglevel>
      <status>SCHEDULED</status>
      <title>TPS Scheduled Script</title>
      <recurrence>
        <monthlydayofweek>
          <dayofweek>MONDAY</dayofweek>
          <enddate>2021-04-10</enddate>
          <everyxmonths>1</everyxmonths>
          <orderofweek>SECOND</orderofweek>
          <repeat></repeat>
          <startdate>2020-10-10</startdate>
          <starttime>01:00:00Z</starttime>
        </monthlydayofweek>
      </recurrence>
    </scriptdeployment>
  </scriptdeployments>
</scheduledscript> 

        

Related Topics

Scheduled Scripts as XML Definitions
Defining a Recurring Scheduled Script Deployment

General Notices