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.
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?
Do we need to rewrite SuiteScript 2.0 scripts to leverage SuiteScript 2.1 features in NetSuite 2026.1?
What should developers be cautious about when enabling the execution of SuiteScript 2.0 as SuiteScript 2.1?
Does the SuiteScript execution preference update in NetSuite 2026.1 affect backward compatibility?
Weekly Update History (1)
Updated link to the PDF file to point to v12. For the latest version, see NetSuite 2025.2 Release Notes.
View Oracle DocsWas this article helpful?