Custom Tool Script Requirements for NetSuite 2026.1
Custom Tool Scripts in NetSuite 2026.1 now support execution logs, requiring updated specifications for all tools.
Starting in NetSuite 2026.1, there are significant updates to the custom tool script type and its corresponding SuiteCloud Development Framework (SDF) object. These enhancements include support for execution logs, which provide a vital resource for developers to monitor and analyze script performance.
What's New
This release introduces the ability to utilize execution logs in custom tool scripts, enhancing the script debugging process. Both new and existing custom tools must adhere to the updated specifications to ensure this logging feature functions effectively.
Key Changes
- Execution Log Support: All custom tool scripts now support execution logs available on the Script Execution Logs page located at Customization > Scripting > Script Execution Logs.
- Updated Script Requirements:
- The script header must include the JSDoc tag
@NScriptType CustomTool. - Entry point functions for each tool method must be declared as asynchronous.
- The script header must include the JSDoc tag
- New JSON Schema Requirements: Developers need to define properties for actions in their custom tools using a JSON schema.
- SDF Object Specifications: Custom tools are defined within the SDF as toolset objects, requiring specific properties in the XML definition to operate correctly.
Development Guidelines
To create a custom tool script successfully, you must include:
- Custom Tool Script File: This file contains the SuiteScript code for your tool. Each method can be defined as a separate tool in the tool schema. Refer to the Custom Tool Script Best Practices for optimal structuring.
- Custom Tool JSON Schema: This JSON file outlines all the properties for the actions in your custom tool.
- Toolset SDF Object: An XML definition file that corresponds with your custom tool script. This is critical for integrating correctly within the SuiteCloud environment.
- Note that the modules N/http, N/https, and N/sftp are not supported within custom tool scripts.
Example Structure
Here’s a brief overview of the essential components:
1/**2 * @NScriptType CustomTool3 */4 "text-purple-400">define(['N/record'], "text-purple-400">function(record) {5 "text-purple-400">async "text-purple-400">function myToolMethod() {6 // Your code here7 }8 "text-purple-400">return {9 myToolMethod: myToolMethod10 };11 });Ensure that your JSON schema file aligns with the specifications laid out in the documentation, as proper structure is crucial for performance.
Who This Affects
- Developers: Engaged in custom scripting and tool creation.
- Administrators: Managing deployments and ensuring compliance with current script versions.
- Technical Support Teams: Assisting users facing issues with custom tools.
Key Takeaways
- Custom tool scripts in NetSuite 2026.1 can utilize execution logging.
- Adhere to new specifications for both existing and new scripts.
- Include proper JSON schema and XML object definitions for successful implementation.
- Asynchronous functions are now mandatory for tool method entry points.
- Review Custom Tool Script Best Practices to optimize the script performance.
Frequently Asked Questions (4)
How do I enable execution logs for custom tool scripts in NetSuite 2026.1?
What changes do I need to make to existing custom tool scripts for compliance with NetSuite 2026.1?
Are there any NetSuite modules that are unsupported in custom tool scripts?
What should the structure of a custom tool script look like?
Weekly Update History (1)
Updated SuiteScript 2.1 Custom Tool Script Type Reference to include new properties in Custom Tool JSON Schema, specifically annotations and outputSchema properties.
View Oracle DocsWas this article helpful?
More in SuiteScript
- Scheduling Map/Reduce Script Submissions in NetSuite 2026.1
In NetSuite 2026.1, you can now schedule map/reduce script deployments for one-time or recurring submissions, enhancing task automation.
- 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.
- N/https Module: Binary File Support in NetSuite 2025.2
NetSuite 2026.1 adds binary file support to N/https for streamlined file handling.
- Attach and Detach Operations in NetSuite 2026.1
Attach and detach operations for record relationships in NetSuite enhance data management and connectivity.
Also from NetSuite 2026.1
- Custom Labels for Additional Item Prices in NetSuite 2026.1
Custom labels enhance transaction summaries in NetSuite, improving clarity for item prices.
- Applied Trans Date and Period Enhancements in NetSuite 20...
Latest updates in NetSuite 2024.1 enhance Accounting SuiteApps with transaction line distribution features.
- Data Not Copied from Production to Sandbox in NetSuite 2026.1
In NetSuite 2026.1, key data like domains and customer roles are not copied to sandbox accounts during refreshes, impacting setup.
- Available Items Only Feature in NetSuite 2026.1
Available items only filtering boosts sales efficiency in NetSuite 2026.1 with Intelligent Item Recommendations.
Advertising
Reach SuiteScript Professionals
Put your product in front of NetSuite experts who work with SuiteScript every day.
Sponsor This Category