Custom Tool Script Enhancements in SuiteScript

Discover the latest enhancements to custom tool scripts in SuiteScript that improve functionality and support for file uploads.

·2 min read·14 views·View Oracle Docs

Starting in the latest NetSuite update, several enhancements have been made to SuiteScript's custom tool scripts, which are crucial for developers to streamline their workflows and enhance the application's performance.

What Are Custom Tool Script Enhancements?

Custom tool scripts allow developers to extend the functionality of NetSuite applications by creating customized scripts that can automate processes and improve user experience. The enhancements introduced cover various aspects meant to improve usability and efficiency.

Key Enhancements:

  • Binary File Support for N/https Module: This improvement allows developers to handle binary files more effectively when using the N/https module, which is crucial for integrations requiring file uploads.

  • New Preference to Use LIST for SFTP File Uploads: A new configuration preference has been added to enhance the handling of SFTP file uploads by allowing the usage of lists, increasing the flexibility of file management.

  • SuiteScript Version Compatibility: The ability to execute SuiteScript 2.0 scripts as SuiteScript 2.1 provides developers with an upgrade pathway, improving overall script performance and security.

  • Support for PATCH Method: The addition of the PATCH method to N/http and N/https modules allows more nuanced control in updating resources, in line with RESTful best practices.

  • GPT-OSS Model Support in N/llm Module: This feature integrates advanced AI capabilities, making it easier for developers to implement complex logic and machine learning functionalities within their scripts.

These enhancements will not only streamline development processes but also enable developers to create more robust applications that integrate seamlessly with business functionalities.

Who This Affects

This release primarily impacts:

  • Developers: Those creating or maintaining SuiteScript applications will find these enhancements directly beneficial.
  • Administrators: Administrators managing integrations and application functionalities can leverage these enhancements for better performance.

Key Takeaways

  • Custom tool scripts now support binary files, enhancing file management.
  • New preferences streamline SFTP file uploads.
  • Compatibility between SuiteScript versions promotes ease of use.
  • The inclusion of the PATCH method aligns with RESTful practices.
  • Advanced AI model support enhances script functionalities.

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

Frequently Asked Questions (4)

Does the new preference in the update affect existing SuiteScript 2.0 scripts?
Yes, the update introduces a preference that allows existing SuiteScript 2.0 scripts to be executed as SuiteScript 2.1, enhancing compatibility and performance without needing to rewrite the scripts.
Do I need to manually update my SuiteScript 2.0 scripts to use SuiteScript 2.1 features?
No, with the new preference set, SuiteScript 2.0 scripts can automatically run as SuiteScript 2.1, allowing you to leverage the features and enhancements of the newer version without manual updates.
What are the benefits of using the new preference for executing SuiteScript 2.0 scripts?
The benefits include backward compatibility with older scripts, enhanced performance, and simplified maintenance by allowing developers to use the latest best practices without rewriting scripts.
How does the update to the N/http and N/https modules impact API integrations?
The update adds support for the PATCH method in the N/http and N/https modules, which facilitates partial updates to resources, making it easier to integrate with modern RESTful services where updating specific fields is required.

Weekly Update History (1)

Release Notesupdated

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