SuiteScript 2.0 to 2.1 Execution Preference in NetSuite 2026.1

NetSuite 2026.1 introduces a new preference to execute SuiteScript 2.0 scripts as SuiteScript 2.1, enhancing script compatibility and performance.

·2 min read·2 views·NetSuite 2026.1·View Oracle Docs

Starting in NetSuite 2026.1, a new preference has been introduced that allows SuiteScript 2.0 scripts to be executed as SuiteScript 2.1. This change is significant as it streamlines the transition for developers looking to leverage newer JavaScript features and maintain script compatibility.

Key Enhancements

  • Improved Performance: Executing scripts in SuiteScript 2.1 may enhance performance with better optimization techniques.
  • Access to New Features: Developers can take advantage of the latest SuiteScript 2.1 features without needing to rewrite existing 2.0 scripts.
  • Backward Compatibility: This preference allows teams to incrementally upgrade their scripts rather than overhauling the entire codebase at once.

Who This Affects

  • Developers: Beneficial for developers maintaining legacy SuiteScript 2.0 scripts who want to update them to SuiteScript 2.1 functionality.
  • Administrators: Those responsible for managing NetSuite script configurations will need to adjust settings to utilize this new feature.

Additional Notable Updates

Alongside the preference for SuiteScript execution, NetSuite 2026.1 brings several other enhancements:

  • N/http and N/https now supports PATCH method: This supports RESTful operations allowing partial updates to resources.
  • Support for GPT-OSS Model in N/llm Module: Expands integration capabilities for AI-related functionalities.
  • Advanced features in SuiteProcurement & Subscription Metrics: Enabling deeper insights into procurement and subscription data.

Note: Be sure to review existing scripts thoroughly after enabling this preference to ensure functionality and performance meet your requirements.

Key Takeaways

  • New Preference: Scripts can be executed as SuiteScript 2.1 for enhanced performance.
  • Streamlined Transition: Facilitates easier upgrades from SuiteScript 2.0.
  • Broader AI Support: Introduction of AI integration capabilities with the GPT-OSS model.
  • Other Enhancements: Includes updates to procurement practices and subscription metrics tracking.

Frequently Asked Questions (4)

Is there a setting to enable SuiteScript 2.0 scripts to run as SuiteScript 2.1 in NetSuite 2026.1?
Yes, NetSuite 2026.1 introduces a new preference that allows SuiteScript 2.0 scripts to be executed as SuiteScript 2.1, which can be enabled to take advantage of improved performance and new features.
Do we need to rewrite SuiteScript 2.0 scripts to leverage SuiteScript 2.1 features in NetSuite 2026.1?
No, with the new preference in NetSuite 2026.1, existing SuiteScript 2.0 scripts can be executed as SuiteScript 2.1 without rewriting them, allowing easier access to SuiteScript 2.1 features.
What should developers be cautious about when enabling the execution of SuiteScript 2.0 as SuiteScript 2.1?
Developers should thoroughly review existing scripts after enabling this preference to ensure they function correctly and meet performance expectations under SuiteScript 2.1.
Does the SuiteScript execution preference update in NetSuite 2026.1 affect backward compatibility?
No, the new execution preference maintains backward compatibility, enabling teams to upgrade scripts incrementally rather than requiring an immediate complete overhaul.

Weekly Update History (1)

Release Notesupdated

Updated link to the PDF file to point to v12. For the latest version, see NetSuite 2025.2 Release Notes.

View Oracle Docs
Source: New in February Oracle NetSuite Help Center. This article was generated from official Oracle documentation and enriched with additional context and best practices.

Was this article helpful?