SuiteScript 2.x Modules
Explore SuiteScript 2.x modules for efficient script development and optimized permissions for NetSuite users.
SuiteScript 2.x APIs are organized into various modules, each serving specific functionalities that enhance the script development experience and performance in NetSuite. It's essential to load only the relevant modules required for your script to avoid unnecessary overhead.
What Are SuiteScript 2.x Modules?
The SuiteScript 2.x framework includes a variety of modules, each designed for particular tasks. Here's a comprehensive overview:
| Module | Description | Supported Script Types | Permissions |
|---|---|---|---|
N/action | Executes business logic to update the state of a record, emulating user interface actions. | Client and server scripts | - |
N/auth | Changes NetSuite login credentials. | Server scripts | - |
N/cache | Enables data caching to improve performance. | Server scripts | - |
N/certificateControl | Provides access to the Digital Certificates list for digital signing. | Server scripts | Certificate Management |
N/commerce | Accesses web store assets like items and shopping cart data. | Client and server scripts | - |
N/compress | Compresses and decompresses files. | Server scripts | - |
N/config | Accesses NetSuite configuration settings. | Server scripts | - |
N/crypto | Includes hashing and encryption capabilities. | Server scripts | - |
N/crypto/certificate | Signs XML documents with digital certificates using asymmetric cryptography. | Server scripts | Certificate Access |
N/currency | Works with exchange rates within your NetSuite account. | Client and server scripts | - |
N/currentRecord | Accesses the record instance currently being worked on. | Client scripts | - |
N/documentCapture | Extracts text content from supported documents. | Server scripts | SuiteScript 2.1 only |
N/email | Sends email messages from within NetSuite. | Client and server scripts | - |
N/error | Creates custom SuiteScript errors for better error handling. | Server scripts | - |
N/file | Interacts with files in NetSuite. | Server scripts | - |
N/log | Provides logging methods to document script execution. | Client and server scripts | Limitations apply to client scripts |
N/query | Creates and runs searches using SuiteAnalytics Workbook. | Client and server scripts | SuiteAnalytics Workbook |
N/ui/dialog | Builds modal dialogs for user interaction. | Client scripts | - |
N/ui/message | Displays messages in the NetSuite interface. | Client scripts | - |
N/util | Accesses utility methods for scripting. | Client and server scripts | - |
Best Practices
- Load Only Required Modules: Optimize script performance by only including modules you need.
- Understand Permissions: Be aware of the permissions required to access different modules and ensure that your role settings are properly configured.
- Familiarize with Script Types: Different modules support various script types; ensure compatibility when developing your extensions.
Who This Affects
- Developers: Need to understand and effectively utilize SuiteScript modules in their work.
- Administrators: Responsible for setting up roles and permissions linked to SuiteScript usage.
Key Takeaways
- SuiteScript 2.x modular structure enhances development flexibility.
- Each module has specific functionalities tailored for various script types.
- Proper role configuration is crucial for utilizing SuiteScript modules effectively.
Source: This article is based on Oracle's official NetSuite documentation.
Frequently Asked Questions (4)
What are the permissions required to use the N/certificateControl module in SuiteScript 2.x?
Are all SuiteScript 2.x modules available for both client and server scripts?
What are the best practices for loading modules in SuiteScript 2.x?
Is the N/documentCapture module available in all versions of SuiteScript 2.x?
Was this article helpful?
More in SuiteScript
- SuiteScript 2.1 Enhancements in NetSuite February Updates
SuiteScript 2.1 now supports async features and PATCH method. Discover the latest API and SuiteProcurement improvements.
- Custom Tool Script Enhancements in NetSuite
Custom tool scripts in NetSuite gain execution log support and a new management page in February 16, 2026.
- Scheduling Map/Reduce Script Deployments in NetSuite
Learn to schedule map/reduce script submissions, including one-time and recurring options in NetSuite.
- 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.
