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 define(['N/record'], function(record) {5 async function myToolMethod() {6 // Your code here7 }8 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
- 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
- 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.
- SuiteCloud CLI Prerequisites for Development in NetSuite 2026.1
Updated for NetSuite 2026.1, adding links for SuiteCloud CLI and account setup.
Advertising
Reach SuiteScript Professionals
Put your product in front of NetSuite experts who work with SuiteScript every day.
Sponsor This Category