Submitting an On-Demand Scheduled Script Instance from the UI
Before you submit a scheduled script, be sure you know how SuiteCloud Processors works.
You can submit a scheduled script on-demand by using the Save and Execute option on the Script Deployment page. Make sure the Status field is set to Not Scheduled or Testing before submitting a script on-demand.
You can submit an on-demand script only if there isn’t another unfinished instance of it running.
Use the Testing status to debug and test your script. If you want to step through the script in the SuiteScript Debugger, you’ll need to use deployed debugging. See Debugging Deployed SuiteScript 1.0 and SuiteScript 2.0 Server Scripts and Debugging Deployed SuiteScript 2.1 Server Scripts for more details.
Even if you submit a script on-demand, it might not start right away. There may be a short system delay, and if other scripts are in the queue, yours will wait until they finish.
To submit an on-demand scheduled script instance from the UI:
-
First, create your scheduled script entry point, which includes your JavaScript file and script record. Want an example? See SuiteScript 2.x Scheduled Script Type Code Sample. New to scripts? Check out SuiteScript 2.x Hello World and SuiteScript 2.x Entry Point Script Creation and Deployment.
-
On the associated script record, select the Deploy Script button.
-
When the script deployment record loads, click the Deployed box if it’s not already checked. You can’t submit the script unless this box is checked.
-
Review the scheduled script deployment field descriptions at Scheduled Script Deployment Record.
-
Set the Status field to Not Scheduled or Testing.
-
Set the remaining body fields.
-
On the Schedule Subtab, set all deployment options.
-
Click Save and Execute from the Save dropdown.