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
- Common SuiteScript Errors and Solutions for NetSuite
Common NetSuite script errors include INVALID_SCRIPT_DEPLOYMENT_ID and SSS_AUTHORIZATION_HEADER_NOT_ALLOWED. Learn effective solutions.
- Setting Field Values in SuiteScript for Effective Record
Learn to set field values in SuiteScript effectively, troubleshooting common errors and understanding data types.
- 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.
- Enhancements to SuiteScript User Role Context Clarification
SuiteScript updates clarify the user and role contexts for script executions, improving deployment understanding and management.
Also from NetSuite 2026.1
- Consigned Inventory Management in NetSuite 2026.1
Consigned inventory management in NetSuite 2026.1 enhances tracking and reporting for vendor consigned goods. Introduction
- Standard Roles and Permissions in NetSuite 2026.1
Explore standard roles and permissions in NetSuite 2026.1 for enhanced employee management and security. Introduction Introduction
- Prompt Studio: Generative AI Management in NetSuite 2026.1
Prompt Studio in NetSuite 2026.1 enhances generative AI management, enabling customization of prompts and Text Enhance actions.
- SuiteCloud Agent Skills for AI Development in NetSuite 2026.1
SuiteCloud Agent Skills enhance development workflows with AI-driven guidance in NetSuite 2026.1, improving automation and process standardization.
Advertising
Reach SuiteScript Professionals
Put your product in front of NetSuite experts who work with SuiteScript every day.
Sponsor This Category