Scheduling Map/Reduce Script Deployments in NetSuite

Learn to schedule map/reduce script submissions, including one-time and recurring options in NetSuite.

·2 min read·59 views·View Oracle Docs

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:

  1. Create Your Script: Begin by uploading your JavaScript file and creating a script record. Refer to the SuiteScript documentation for examples.
  2. Deploy the Script: In the script record, click the Deploy Script button.
  3. Set Up Deployment Record:
    • Check the Deployed box to activate the script.
    • Set the Status field to Scheduled.
  4. Configure Other Fields: Fill out the remaining fields based on your needs.
  5. 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.
  6. 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?
To schedule a map/reduce script, set the 'Status' field to 'Scheduled' and configure the upcoming times on the 'Schedule' subtab. You must also ensure the 'Deployed' box is checked for the script to run.
How does the session time zone affect script scheduling in NetSuite 2026.1?
The times displayed on the 'Schedule' subtab reflect the session time zone of the user logged into NetSuite, which may differ from the company's time zone, potentially affecting perceived execution times.
What issue might arise if you try to submit multiple map/reduce scripts in quick succession?
If a previous instance of the map/reduce script is still processing, the system won't allow new submissions. You need to create multiple deployments for the same script to handle this situation.
Does setting a schedule guarantee immediate execution of map/reduce scripts in NetSuite 2026.1?
No, the scheduled times do not guarantee immediate execution. Delays may occur, especially if other scripts are queued, affecting the actual run time.

Weekly Update History (1)

SuiteScriptadded

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 Docs
Source: Scheduling a Map/Reduce Script Submission Oracle NetSuite Help Center. This article was generated from official Oracle documentation and enriched with additional context and best practices.

Was this article helpful?

More in SuiteScript

View all SuiteScript articles →