Custom Tool Script Enhancements for SuiteScript in NetSuite

Discover enhancements to custom tool scripts in SuiteScript, improving capabilities and integrations for developers.

·2 min read·5 views·View Oracle Docs

TL;DR Opening

Enhancements to custom tool scripts in SuiteScript enable developers to leverage new capabilities, improving integrations and functionality within NetSuite. These updates boost script effectiveness and optimize development workflows.

What's New in Custom Tool Script Enhancements

Recent updates in SuiteScript focus on refining custom tool scripts, allowing for improved flexibility and efficiency. Key highlights include:

Binary File Support for N/https Module

The introduction of binary file support in the N/https module enhances the ability to handle various file types effectively during script execution. This addition is particularly useful for integrating with external systems that require complex data handling.

New Preference to Use LIST for SFTP File Uploads

Developers can now specify a preference to use LIST for uploading files via SFTP, simplifying the upload process and ensuring that only necessary files are handled, reducing unnecessary data transfer and improving efficiency.

New Preference to Execute SuiteScript 2.0 Scripts as SuiteScript 2.1

This preference allows developers to run SuiteScript 2.0 scripts in a SuiteScript 2.1 environment, facilitating gradual upgrades and testing of newer script features without needing to completely rewrite existing scripts.

N/http and N/https Now Support PATCH Method

With the addition of support for the PATCH method in both N/http and N/https, developers gain the ability to perform partial updates to resources, which is essential for maintaining modern, RESTful API integrations.

Support for GPT-OSS Model in N/llm Module

Enhancements to the N/llm module now enable support for the GPT-OSS model, opening up new avenues for utilizing advanced AI capabilities directly in the scripting environment. This support allows developers to derive insights and automate processes using AI-driven suggestions.

Who This Affects

  • Developers: Those who create and maintain custom scripts will benefit from enhanced functionalities.
  • Administrators: May need to oversee the implementation of new features and guide developers through updates.

Key Takeaways

  • Custom tool scripts in SuiteScript receive key updates, enhancing capabilities for developers.
  • New preferences and methods improve integration capabilities and data handling.
  • Support for modern AI models opens new possibilities for automation and insights.

Source: This article is based on Oracle's official NetSuite documentation.

Frequently Asked Questions (4)

Can existing SuiteScript 2.0 scripts be executed as SuiteScript 2.1 without refactoring?
Yes, the new preference in NetSuite 2026.1 allows developers to run SuiteScript 2.0 scripts with the enhanced features and performance of SuiteScript 2.1 without needing to refactor their code immediately.
What additional capabilities does the support for the PATCH method in N/http and N/https modules provide?
The support for the PATCH method allows developers to modify existing resources directly on the server with granular updates, rather than needing to perform full replacements. This adds flexibility to API interactions.
What prerequisites must be met to view execution logs in custom tool scripts?
To utilize the execution logging feature for custom tool scripts, developers need to update their scripts by adding the JSDoc tag '@NScriptType CustomTool', declaring entry-point functions as asynchronous, and modifying SDF object XML attributes, such as the script ID prefix.
How does the update in role restrictions on account records help organizations?
The update to include unassigned values in role restrictions on Class, Department, and Location (CDL) streamlines user access control, allowing for more organized and effective management of user permissions across organizational structures.

Weekly Update History (1)

Release Notesupdated

Updated link to the PDF file to point to v10. 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?

More in SuiteScript

View all SuiteScript articles →