Custom Tool Script Enhancements in NetSuite SuiteScript

Discover new Custom Tool Script enhancements in NetSuite SuiteScript, improving integration capabilities and functionality.

·2 min read·10 views·View Oracle Docs

TL;DR

This article discusses the recent enhancements made to Custom Tool Scripts within NetSuite's SuiteScript. These updates aim to expand the functionality and integration capabilities, benefitting developers seeking to optimize their workflows.

What Are the Recent Enhancements?

The Custom Tool Script enhancements provide several critical features that refine the interaction and integration possibilities for developers using SuiteScript. Below are the notable improvements:

Overview of Enhancements

  • Binary File Support for N/https Module: Integrates the ability to handle binary files, facilitating more robust data handling during API calls.
  • New Preference for SFTP File Uploads: A preference is introduced to utilize LIST commands for SFTP uploads, streamlining the file transfer process.
  • Execution Preference Updates: Now, SuiteScript 2.0 scripts can be executed as SuiteScript 2.1 scripts, allowing developers to leverage more modern JavaScript features.
  • Support for PATCH Method: The N/http and N/https modules now support the PATCH HTTP method, enabling partial resource updates, which can enhance efficiency in RESTful integrations.
  • GPT-OSS Model Support in N/llm Module: This feature introduces support for advanced models in natural language processing, opening up new avenues for AI-driven data interactions.

Why Do These Enhancements Matter?

These improvements are geared towards enhancing the flexibility and functionality of scripts within NetSuite's ecosystem, particularly for developers focused on automation and integrations. By introducing support for new file types, modern scripting standards, and AI capabilities, NetSuite paves the way for streamlined workflows and improved performance in custom applications.

Best Practices

  • Utilize New Features: Ensure your scripts are updated to take advantage of the new preferences and functionalities.
  • Stay Current: Regularly review the release notes to remain updated on new features that can benefit your custom development processes.

Who This Affects

  • Developers: Those working with custom scripts or those integrating NetSuite with external systems.
  • Administrators: Administrators overseeing the deployment and management of scripts within the organization.

Key Takeaways

  • The enhancements to Custom Tool Scripts bring significant advancements to SuiteScript capabilities.
  • Developers can leverage new preferences for file transfers and HTTP methods to create efficient, modern integrations.
  • Embracing new functionalities paves the way for better scripting practices and workflow optimization.

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

Frequently Asked Questions (4)

How can I execute SuiteScript 2.0 scripts using SuiteScript 2.1 enhancements without rewriting my code?
In NetSuite 2026.1, there's a new preference that allows SuiteScript 2.0 scripts to execute with SuiteScript 2.1 enhancements. This saves development time by adapting older scripts to newer standards and methods without requiring a rewrite.
What new method is supported by N/http and N/https in NetSuite 2026.1?
NetSuite 2026.1 introduces support for the PATCH method in N/http and N/https, allowing developers to partially update resources, which enhances flexibility and precision in REST API integrations.
How can I view execution logs for custom tool scripts in the latest SuiteScript updates?
To view execution logs for custom tool scripts, you need to add the JSDoc tag `@NScriptType CustomTool` to your scripts, declare entry points as asynchronous functions, and update the SDF object XML definitions accordingly. Logs are available on the Script Execution Logs page.
What enhancements does the N/llm module receive in NetSuite 2026.1?
The N/llm module now supports the GPT-OSS model, expanding AI capabilities within NetSuite. This update enables more advanced AI integrations, allowing developers to build more intelligent applications that leverage natural language processing.

Weekly Update History (1)

Release Notesupdated

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