Creating Additional Modules for Extensions in SuiteCloud
Enhance your SuiteCloud extension by adding modules with the `gulp extension:create-module` command and optimize your development.
To develop a more complex extension in SuiteCloud, you'll often need to create additional modules beyond the baseline. Using the gulp extension:create command establishes a baseline extension with one module, but the developer tools allow you to expand this functionality as needed.
How to Add Additional Modules to Your Extension
To create additional modules in your extension, follow these steps:
-
Create a baseline extension (if you haven’t done so). Reference the official documentation on Creating a Baseline Extension for guidance.
-
Open your command line or terminal.
-
Access your extension development directory. This is the top-level directory created during the installation of the extension developer tools.
-
Run the command:
gulp extension:create-module -
Follow the prompts:
- Set the Module Name: Enter a name for the new module using only alphanumeric characters and no spaces.
- Select the File Types Needed: Choose one or more file types that your extension will use, such as:
- JavaScript
- SuiteScript
- Templates
- Sass
- Configuration
- SuiteScript2
- Select the Extension: If multiple extensions exist in your Workspace, select the one to which this module will be added.
-
Repeat as necessary for any additional modules.
Important Considerations
- Naming Restrictions: Ensure all entries are using only alphanumeric characters without spaces unless otherwise directed.
- Record Limits: NetSuite has specific limits to prevent overconsumption of web services. When developing themes and extensions, keep the number of files and folders at the same level to a maximum of 100 to avoid deployment issues. Organizing images across various folders and placing custom modules in separate top-level directories can help manage this.
- Developing Extensions: Once your baseline extension files are completed, you can begin developing your extension. For comprehensive guidance on this, check the documentation on Developing Extensions.
Key Takeaways
- Use
gulp extension:create-moduleto add modules seamlessly to existing extensions. - Name modules and select file types with care, adhering to character restrictions.
- Understand and manage NetSuite's web services record limits during development.
- Always refer back to the official documentation for detailed guidance and best practices.
Frequently Asked Questions (4)
What command is used to create additional modules for a NetSuite extension?
Are there specific requirements for naming a module in NetSuite extensions?
Do I need a specific version of the Extension Developer Tools to access SuiteScript 2.0 file types?
What are some strategies to manage record limits when creating additional modules?
Was this article helpful?
More in SuiteCloud Development Framework
- 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
- SuiteCloud CLI for Node.js: New Features in NetSuite 2026.1
Explore new features in SuiteCloud CLI for Node.js for streamlined development in NetSuite 2026.1.
- SuiteCloud Extension for Visual Studio Code in NetSuite 2024.2
The article now includes updates from NetSuite 2026.2 for the SuiteCloud Extension for Visual Studio Code. SuiteCloud Extension for Visual Studio Code
- beforeUndeploy Installation Hook in NetSuite 2026.1
Introducing the beforeUndeploy installation hook in NetSuite 2026.1 for custom pre-uninstall logic in SuiteApps.
Advertising
Reach SuiteCloud Development Framework Professionals
Put your product in front of NetSuite experts who work with SuiteCloud Development Framework every day.
Sponsor This Category