New SuiteScript 2.1 Execution Preferences in NetSuite 2026.1
NetSuite 2026.1 introduces new preferences for executing SuiteScript 2.0 scripts as SuiteScript 2.1, enhancing compatibility and performance.
Starting in NetSuite 2026.1, several significant enhancements have been introduced, particularly focusing on SuiteScript functionality that developers and administrators need to be aware of. These updates provide better integration capabilities, improved scripting behaviors, and enhanced logging features for custom tool scripts.
New Features and Enhancements
New Preference to Execute SuiteScript 2.0 Scripts as SuiteScript 2.1
This enhancement allows developers to run existing SuiteScript 2.0 scripts within a SuiteScript 2.1 environment. This transition facilitates better performance, access to modern JavaScript features, and overall improved functionality. Administrators can enable this feature under the script deployment settings.
N/http and N/https Now Supports PATCH Method
The introduction of the PATCH method in both N/http and N/https modules enhances the API capabilities of SuiteScript, enabling developers to perform partial updates to resources. This is particularly useful in scenarios where only specific fields of a record need to be updated without affecting the entire record.
Custom Tool Script and SDF Object Updates
NetSuite 2026.1 revamps the custom tool script type and related SuiteCloud Development Framework (SDF) objects, offering:
- Access to execution logs for monitoring script performance.
- Structured logging for easier troubleshooting.
- Updates to JSDoc tags and entry point function declarations. These modifications ensure that developers can effectively manage and monitor their custom scripts, improving overall project outcomes.
Support for GPT-OSS Model in N/llm Module
The addition of support for the GPT-OSS model within the N/llm module expands capabilities for machine learning integrations. This allows developers to leverage powerful language processing within their applications, enhancing data interaction protocols and AI functionalities.
Exception Management Now Supported in Sandbox Accounts
With this feature, sandbox accounts can now utilize exception management capabilities, giving developers a testing environment that more closely mirrors production settings. It enables teams to identify and mitigate potential issues before going live.
Class, Department, and Location (CDL) Role Restrictions Update
Updates to CDL role restrictions on account records now include unassigned values. This adjustment improves the flexibility of tracking and managing roles across departments, enhancing organizational efficiency.
Who This Affects
- Developers: The new SuiteScript features, especially execution preferences and HTTP methods, will require developers to adjust their code and testing practices.
- Administrators: The enhanced administrative capabilities for managing scripts and logging processes will help administrators oversee script execution effectively.
- Finance Teams: With accounting and reporting enhancements, finance teams can benefit from improved functionalities.
Key Takeaways
- NetSuite 2026.1 enhances SuiteScript capabilities, focusing on 2.0 and 2.1 compatibility.
- New logging features for custom tool scripts aid in monitoring and troubleshooting.
- The support for new HTTP methods and machine learning models provides improved integration options.
- Administrators can now utilize exception management in sandbox accounts for better testing.
- Updates to role restrictions offer flexibility in organizational management.
Frequently Asked Questions (4)
How can I enable the execution of SuiteScript 2.0 scripts as SuiteScript 2.1 in NetSuite 2026.1?
What new method support has been added to the N/http and N/https modules in NetSuite 2026.1?
Are the new SuiteScript 2.1 execution preferences available in all NetSuite editions?
What improvements have been made to script logging in NetSuite 2026.1?
Weekly Update History (1)
Updated link to the PDF file to point to v19. For the latest version, see NetSuite 2025.2 Release Notes.
View Oracle DocsWas this article helpful?