Binary File Support and Script Enhancements in NetSuite

Discover new binary file support and script enhancements introduced in SuiteScript, improving overall functionality and performance.

·2 min read·5 views·View Oracle Docs

The recent updates in SuiteScript have introduced critical enhancements that significantly advance the capabilities of developers working within the NetSuite ecosystem. This article discusses the latest features, specifically focusing on binary file support and enhancements to the N/http and N/https modules.

What’s New in SuiteScript Enhancements?

Binary File Support for N/https Module

A notable addition is the binary file support in the N/https module, which allows developers to handle binary file uploads efficiently. This capability is particularly useful for applications that require file handling beyond standard text formats, thus broadening the scope of integrations and data handling in SuiteScript.

New Preference for SFTP File Uploads

Additionally, a new preference has been introduced to use LIST for SFTP (Secure File Transfer Protocol) file uploads. This feature allows for more streamlined handling of file uploads over secure protocols, providing a secure method for transferring large files to and from NetSuite.

Execution of SuiteScript 2.0 Scripts as SuiteScript 2.1

Developers can now choose to execute SuiteScript 2.0 scripts as SuiteScript 2.1. This flexibility facilitates the transition to the more advanced SuiteScript version while ensuring compatibility with existing scripts, allowing a smoother upgrade path necessary for leveraging new features.

Support for PATCH Method in N/http and N/https

Moreover, the N/http and N/https modules now support the PATCH method. This enhancement is pivotal for applications that follow RESTful principles, allowing for partial updates to existing resources in NetSuite, thereby improving data management efficiency and API interaction.

In summary, these enhancements in SuiteScript provide developers with powerful tools to enhance integration, data handling, and security when working within the NetSuite platform.

Who This Affects

  • Developers working on custom SuiteScript functionality.
  • Integrators utilizing the new binary file support and PATCH method features.

Key Takeaways

  • New binary file support allows efficient large file handling.
  • SFTP LIST preference streamlines secure file uploads.
  • Enhanced capability for executing legacy SuiteScript 2.0 as 2.1.
  • Support for PATCH method improves RESTful API interactions.

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 →