Enhanced Logging for Custom Tools in NetSuite 2026.1
Enhanced logging for custom tools in NetSuite 2026.1 aids script monitoring and troubleshooting efforts.
As of NetSuite 2026.1, developers can leverage an enhanced logging feature for custom tool scripts, significantly improving script monitoring and troubleshooting. This article outlines how to update existing custom tool scripts and their associated SuiteCloud Development Framework (SDF) objects to take advantage of these capabilities.
Updates for Custom Tool Scripts
To ensure your custom tool scripts benefit from enhanced execution logs, implement the following updates:
JSDoc Tag Addition
- Add the JSDoc tag
@NScriptType CustomToolto your custom tool script. This tag informs NetSuite that your script should be treated as a custom tool, enabling the new logging features associated with this script type.
Asynchronous Entry Points
- Declare entry point functions as asynchronous. By marking your methods with the
asynckeyword, you enhance their ability to handle operations that require waiting for resources, such as API calls, thus yielding better script performance and log accuracy.
Updates for SDF Object XML Definitions
In addition to script modifications, adjustments are necessary for the corresponding SDF object XML definition files:
- Rename the object from
tooltotoolset. This change aligns object nomenclature with functionality improvements introduced in the new version. - Change the script ID prefix from
customtool_tocusttoolset_. Maintaining proper naming conventions ensures clarity and consistency across your development projects. - Rename the attribute
exposeto3rdpartyagentstoexposetoaiconnector. This change reflects the enhanced connectivity options available for integrations with external systems.
Key Takeaways
- Implement the @NScriptType CustomTool tag to activate logging features for your scripts.
- Declare entry point methods as asynchronous for optimal script functionality.
- Update SDF object names and prefixes to maintain compatibility with the latest enhancements.
- Renaming the exposeto attributes helps clarify their purpose in the context of integrations.
By applying these updates, NetSuite developers can maximize their ability to monitor script execution and troubleshoot issues efficiently, aiding in delivering robust custom tool functionalities. For more detailed guidance on updating your custom tools, refer to the documentation on updating custom tools.
Frequently Asked Questions (4)
Does the enhanced logging feature apply to all custom tool scripts in NetSuite 2026.1?
What permissions are required to implement the enhanced logging features?
How do the changes to SDF object XML definitions affect existing custom tools?
What happens if I don't declare entry point functions as asynchronous?
Was this article helpful?
More in SuiteScript
- SuiteScript 2.1 Enhancements and API Updates in NetSuite
SuiteScript 2.1 enables execution of 2.0 scripts and supports PATCH method for enhanced API capabilities.
- Scheduling Map/Reduce Script Deployments in NetSuite
Learn to schedule map/reduce script submissions, including one-time and recurring options in NetSuite.
- Binary File Support in N/https Module for SuiteScript
SuiteScript enhances capabilities with binary file support in the N/https module, allowing improved data handling in external communications.
- API Governance Units Calculation in NetSuite 2026.1
NetSuite 2026.1 introduces examples illustrating API governance unit calculations for both user event and scheduled scripts.
Also from NetSuite 2026.1
- NetSuite CPQ Functions Overview and Usage in 2026.1
NetSuite CPQ 2026.1 introduces a comprehensive list of functions, optimizing both client-side and server-side operations for better governance and...
- Enhancements to Custom Tool Scripts in NetSuite 2026.1
NetSuite 2026.1 improves custom tool scripts with execution logs, management page, and binary file support. TL;DR Opening
- Unlimited Sandbox Refreshes in NetSuite 2026.1
NetSuite 2026.1 introduces unlimited sandbox refreshes and changes access for OCI configurations.
- Enriched Bank Data for Improved Transaction Matching in NetSuite
Updated for NetSuite 2026.1: Enriched Bank Data feature enhances transaction matching accuracy using generative AI.
