Submitting an On Demand Scheduled Script Instance from the UI

Important:

Before you submit a scheduled script instance for processing, you must understand how SuiteCloud Processors works.

Scheduled scripts can be submitted for processing on demand by using the Save and Execute option on the Script Deployment page. The Status field on the Script Deployment page must be set to either Not Scheduled or Testing to submit a script on demand.

You can submit an on demand instance of the script only if there is no other unfinished instance of the same script.

The Testing status is primarily used to debug and test a script. If you want to step through the script with the SuiteScript Debugger, you must use deployed debugging. For more information about debugging deployed scripts, see Debugging Deployed SuiteScript 1.0 and SuiteScript 2.0 Server Scripts and Debugging Deployed SuiteScript 2.1 Server Scripts.

Important:

Even if you initiate an on demand deployment of a script that immediately submits the script for processing, this does not mean the script will execute right away. After a script is submitted for processing, there may be a short system delay before the script is executed, even if no scripts are before it. If there are scripts already waiting to be executed, the script may wait to be executed until other scripts have completed.

To submit an on demand scheduled script instance from the UI:

  1. First, create your scheduled script entry point script. This includes your JavaScript file and its associated script record. To review a scheduled script example, see Scheduled Script Sample. If this is your first script, see SuiteScript 2.x Hello World and SuiteScript 2.x Entry Point Script Creation and Deployment.

  2. On the associated script record, select the Deploy Script button.

  3. When the script deployment record loads, click the Deployed box if it is not already checked. A scheduled script cannot be submitted for processing unless this box is checked.

  4. Review the scheduled script deployment field descriptions at Scheduled Script Deployment Record.

  5. Set the Status field to Not Scheduled or Testing.

  6. Set the remaining body fields.

  7. On the Schedule Subtab, set all deployment options.

  8. Click Save and Execute from the Save dropdown.

Related Topics

Scheduled Script Submission
Scheduled Script Deployment Record
Scheduled Script Deployments that Continue to Use Queues
Scheduling a One Time or Recurring Scheduled Script Submission
Submitting an On Demand Scheduled Script Instance from Another Script

General Notices