New SuiteScript Enhancements in NetSuite 2026.1
Discover new SuiteScript enhancements in NetSuite 2026.1, including script version execution, PATCH method support, and tool updates.
TL;DR Opening
Starting in NetSuite 2026.1, several critical enhancements have been introduced to SuiteScript, improving functionality and performance. Notable updates include a new preference for executing SuiteScript 2.0 scripts as SuiteScript 2.1, the ability to use the PATCH method in N/http and N/https, and new features related to custom tool scripts and AI integration.
What's New in SuiteScript Enhancements
NetSuite 2026.1 introduces a variety of SuiteScript enhancements aimed at developers looking to streamline scripting processes and improve integration capabilities. Let’s take a closer look at the key updates:
New Preference to Execute SuiteScript 2.0 Scripts as SuiteScript 2.1
This new preference allows existing scripts written in SuiteScript 2.0 to execute with SuiteScript 2.1 enhancements without necessitating a complete rewrite of legacy code. This not only saves development time but also facilitates the adoption of newer standards and methods within existing workflows.
N/http and N/https Now Supports PATCH Method
The addition of the PATCH method extends the capabilities of HTTP methods in NetSuite. This allows developers to partially update resources over HTTP, making integration with REST APIs more flexible. This enhancement is particularly beneficial for developers working with external applications that require precise updates without needing to resend complete resource representations.
Custom Tool Script Enhancements
The updates for custom tools in SuiteCloud Development Framework (SDF) include:
- New Custom Tools Page: Provides easier navigation and management of custom tool scripts.
- Execution Logs: Developers can now view execution logs for custom tool scripts directly in the Script Execution Logs page. To utilize this, follow the steps:
- Add the JSDoc tag
@NScriptType CustomToolto your custom tool scripts. - Declare entry points as asynchronous functions.
- Update the SDF object XML definitions accordingly.
- Add the JSDoc tag
Support for GPT-OSS Model in N/llm Module
The inclusion of support for the GPT-OSS model in the N/llm module signifies a leap forward in AI capabilities within NetSuite, allowing for more advanced and nuanced AI integrations. This enhances the ability of developers to create intelligent applications that leverage natural language processing.
Exception Management Now Supported in Sandbox Accounts
With this feature, developers can better test and manage exceptions in their custom scripts within sandbox environments, leading to more robust application development.
Class, Department, and Location (CDL) Role Restrictions on Account Records Updated
This update allows unassigned values to be included in role restrictions, which can enhance security and data integrity across accounts, departments, and classifications.
Who This Affects
- Developers: Those who develop and maintain scripts will benefit from improved functionalities and logging features.
- Administrators: Account administrators can better manage scripts and enhancements, leading to improved system performance.
- Integration Teams: Teams involved in integrating NetSuite with other systems will find the new PATCH method and AI support particularly valuable.
Key Takeaways
- New preferences allow for easier execution of older SuiteScript versions as newer versions.
- PATCH method support in HTTP methods enhances API integration capabilities.
- Enhanced execution logging for custom tool scripts enables better monitoring and troubleshooting.
- AI enhancements in the N/llm module open new possibilities for intelligent integrations.
- Exception management capabilities in sandboxes improve testing robustness.
Frequently Asked Questions (4)
How can I execute SuiteScript 2.0 scripts using SuiteScript 2.1 enhancements without rewriting my code?
What new method is supported by N/http and N/https in NetSuite 2026.1?
How can I view execution logs for custom tool scripts in the latest SuiteScript updates?
What enhancements does the N/llm module receive in NetSuite 2026.1?
Weekly Update History (1)
Updated link to the PDF file to point to v6. For the latest version, see NetSuite 2025.2 Release Notes.
View Oracle DocsWas this article helpful?