Scheduled Script Use Cases
Use scheduled scripts for tasks that need to run on a set schedule or on-demand. Don't use them for big data jobs or long-running operations.
Here are a few good reasons to use a scheduled script:
-
You need to log basic information about a recurring schedule
-
You want to schedule a maintenance script to run later
-
You need to create and then purge temporary records
-
You need to asynchronously execute logic within another server script
Note:
If you previously used SuiteScript 1.0 scheduled scripts, many of the use cases for those scripts now apply to the SuiteScript 2.x SuiteScript 2.x Map/Reduce Script Type.