Custom Tool Script Enhancements in NetSuite SuiteScript

Discover new Custom Tool Script enhancements in NetSuite SuiteScript that streamline development and improve functionality.

·2 min read·5 views·View Oracle Docs

TL;DR

This article highlights the new enhancements in Custom Tool Scripts available in NetSuite's SuiteScript. These updates aim to streamline development processes, improve functionality, and introduce new preferences for users.

What’s New in Custom Tool Scripts?

Several key enhancements have been introduced to Custom Tool Scripts within SuiteScript:

  • Binary file support for N/https Module: This enhancement allows for the handling of binary files in the N/https module, enabling developers to manage file uploads and downloads more efficiently.
  • New Preference to Use LIST for SFTP File Uploads: A new setting has been added to allow developers to choose whether to use LIST commands while uploading files via SFTP. This adds flexibility in managing file uploads and transfers.
  • New Preference to Execute SuiteScript 2.0 Scripts as SuiteScript 2.1: Developers can opt to execute SuiteScript 2.0 scripts with the compatibility of SuiteScript 2.1, which may improve performance and provide access to newer features without having to rewrite code.
  • N/http and N/https Now Supports PATCH Method: The previously supported methods of the N/http and N/https modules have been extended to include the PATCH method, allowing for more nuanced updates of existing resources.
  • Support for GPT-OSS Model in N/llm Module: Integration with the GPT-OSS model provides developers with advanced AI capabilities, potentially enhancing data processing and intelligence tasks within scripts.

Implementation Considerations

When leveraging these enhancements, consider the following best practices:

  • Ensure proper testing when switching preferences for script executions to prevent any runtime errors.
  • Utilize the new binary file support with appropriate file handling procedures to prevent issues during uploads and downloads.
  • Take advantage of the SFTP LIST preference only if it adds value to your file handling strategy.

Who This Affects

These enhancements are particularly beneficial for:

  • Developers: As they will have more functionalities and easier integration options to work with.
  • Administrators: Who manage deployment and scripting protocols within NetSuite.

Key Takeaways

  • Introduction of binary file support for the N/https module.
  • New preferences for SFTP file uploads enhance file management.
  • Compatibility updates between SuiteScript 2.0 and 2.1 improve development ease.
  • The addition of the PATCH method in N/http module broadens RESTful interactions.
  • Integration of AI capabilities with GPT-OSS model for smarter scripts.

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

Frequently Asked Questions (4)

Does the new preference to execute SuiteScript 2.0 as SuiteScript 2.1 require any specific configuration changes?
The article highlights the introduction of this preference, but does not specify if any configuration changes are required. Additional documentation may be needed to determine the steps to enable this preference.
How does the support for the PATCH method in N/http and N/https affect existing integrations?
The support for the PATCH method enhances RESTful integrations by enabling updates to parts of a resource without impacting the entire entity, which may reduce the need to rewrite existing functionality that updates entire resources.
What are the benefits of the new subtab in integration execution logs for the AI Connector Service?
The new subtab in the integration execution logs for the AI Connector Service allows for easier access and improved monitoring of integration executions, which can help better manage and troubleshoot integrations involving AI processes.
Will exception management support in sandbox accounts require new permissions or setups?
The article mentions the introduction of exception management support in sandbox accounts, but it does not provide details on whether new permissions or setup steps are needed. Further exploration in NetSuite's help documentation might be necessary.

Weekly Update History (1)

Release Notesupdated

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