Scheduling Map/Reduce Script Deployments in NetSuite
Learn to schedule map/reduce script submissions, including one-time and recurring options in NetSuite.
Scheduling map/reduce script deployments allows developers to automate their script executions at specified times, making it an essential feature for effective resource management in NetSuite. This article covers the steps involved in scheduling both one-time and recurring script submissions.
How to Schedule a Map/Reduce Script Submission
You can schedule map/reduce script deployments for processing either as a one-time event or recurring submissions, such as daily or monthly intervals. Here’s how to do it:
- Create Your Script: Begin by uploading your JavaScript file and creating a script record. Refer to the SuiteScript documentation for examples.
- Deploy the Script: In the script record, click the Deploy Script button.
- Set Up Deployment Record:
- Check the Deployed box to activate the script.
- Set the Status field to Scheduled.
- Configure Other Fields: Fill out the remaining fields based on your needs.
- Schedule Configurations:
- Navigate to the Schedule Subtab.
- Select the frequency of the deployment, such as hourly or daily. For example, to submit the script every hour:
- Check Deployed.
- Set Daily Event to the radio button for enabled.
- Specify Repeat every 1 day.
- Set Start Date to the current date and Start Time to 12:00 am.
- Save the Configuration: Click Save to finalize the scheduling.
Important Considerations:
- The times set in the Schedule subtab are shown in the user’s session time zone, which could differ from your company's time zone settings.
- Be aware that simply marking the script as scheduled does not guarantee immediate execution. There may be delays if other scripts are queued ahead of it.
- NetSuite submits deployments only when the Deployed box is checked. To stop a map/reduce script, uncheck this box.
Frequency Options
When configuring the schedule, consider the frequency settings:
- One-time submissions can be defined for specific dates and times.
- Recurring submissions can be set to repeat daily, weekly, or monthly, and users can define precise start times and intervals.
Who This Affects
- Developers: Those creating and deploying map/reduce scripts.
- Administrators: Individuals managing NetSuite environments where these scripts are employed.
Key Takeaways
- Map/reduce scripts can be scheduled for one-time or recurring executions.
- Deployment is only activated when the Deployed box is checked.
- Times are displayed according to the user's session time zone, which may differ from company settings.
- NetSuite may not execute scripts at the precise scheduled time due to processing delays.
- Multiple script deployments may be needed if there are overlapping executions.
Frequently Asked Questions (4)
What configurations are necessary to schedule a map/reduce script in NetSuite 2026.1?
How does the session time zone affect script scheduling in NetSuite 2026.1?
What issue might arise if you try to submit multiple map/reduce scripts in quick succession?
Does setting a schedule guarantee immediate execution of map/reduce scripts in NetSuite 2026.1?
Weekly Update History (1)
Added information to the following topics to clarify which user and role a script runs as when it is triggered: Scheduling a Map/Reduce Script Submission Submitting an On-Demand Map/Reduce Script Deployment from the UI Submitting an On-Demand Map/Reduce Script Deployment from a Script Scheduling a One Time or Recurring Scheduled Script Submission Submitting an On-Demand Scheduled Script Instance from the UI Submitting an On-Demand Scheduled Script Instance from Another Script
View Oracle DocsWas this article helpful?
More in SuiteScript
- Common SuiteScript Errors and Solutions for NetSuite
Common NetSuite script errors include INVALID_SCRIPT_DEPLOYMENT_ID and SSS_AUTHORIZATION_HEADER_NOT_ALLOWED. Learn effective solutions.
- Setting Field Values in SuiteScript for Effective Record
Learn to set field values in SuiteScript effectively, troubleshooting common errors and understanding data types.
- SuiteScript 2.1 Enhancements and API Updates in NetSuite
SuiteScript 2.1 enables execution of 2.0 scripts and supports PATCH method for enhanced API capabilities.
- Enhancements to SuiteScript User Role Context Clarification
SuiteScript updates clarify the user and role contexts for script executions, improving deployment understanding and management.
Advertising
Reach SuiteScript Professionals
Put your product in front of NetSuite experts who work with SuiteScript every day.
Sponsor This Category