Create Additional Modules for Your Extension in NetSuite

Create additional modules for your NetSuite extension using developer tools. Manage file types and avoid record limits effectively.

·2 min read·View Oracle Docs

To enhance your NetSuite extension, you can create additional modules beyond the baseline one. This process utilizes the developer tools and the gulp command line interface. Here's a step-by-step guide on how to do this effectively.

How to Add Additional Modules to Your Extension

Follow these instructions to successfully add modules to your baseline extension:

  1. Start with a Baseline Extension: If you haven’t created one yet, refer to the documentation on Creating a Baseline Extension.

  2. Open Your Command Line Interface: Begin by accessing the terminal or command line on your machine.

  3. Navigate to Your Project Directory: Change into the top-level extension development directory that was established during the installation of the extension developer tools.

  4. Execute the Module Creation Command: Run the following command to initiate module creation:

    bash
    gulp extension:create-module
  5. Provide Required Information: The system will prompt you for the following details:

    • Module Name: Choose a name for your module using only alphanumeric characters without spaces.

    • File Types Required: Select from the following file options for your extension:

      • JavaScript
      • SuiteScript
      • Templates
      • Sass
      • Configuration
      • SuiteScript2

      Note: Only versions of the Extension Developer Tools from 2020.1 onwards will have the SuiteScript 2.0 file type available.

    • Select Extension: If your workspace has multiple extensions, choose the one for which this module is relevant.

  6. Repeat as Necessary: If you need to add more modules, simply repeat steps 4 and 5.

Important Considerations

  • Record Limits: Be mindful that NetSuite enforces limits on records to manage web service consumption. To avoid issues, keep the number of files and folders at the same level to a maximum of 100.
    • Suggestions to manage this include distributing images across several folders or placing custom modules in a separate top-level directory.
  • After building the baseline extension files in your developer environment, you’re ready to start developing your extension. Refer to the guide on Developing Extensions for further details.

Key Takeaways

  • You can create additional modules for your extension using the gulp command.
  • Use only alphanumeric characters for naming modules.
  • Keep file types organized and limited to avoid exceeding NetSuite's record limits.

Source: This article is based on Oracle's official NetSuite documentation.

Frequently Asked Questions (4)

What command is used to create additional modules for a NetSuite extension?
You can create additional modules for a NetSuite extension using the command `gulp extension:create-module` in the command line interface.
Are there specific requirements for naming a module in NetSuite extensions?
Yes, the module name must consist only of alphanumeric characters without spaces.
Do I need a specific version of the Extension Developer Tools to access SuiteScript 2.0 file types?
Yes, the `SuiteScript 2.0` file type is available only in versions of the Extension Developer Tools from 2020.1 onwards.
What are some strategies to manage record limits when creating additional modules?
To manage record limits, avoid exceeding a maximum of 100 files and folders at the same level by distributing images across several folders or placing custom modules in a separate top-level directory.
Source: Create Additional Modules for an Extension Oracle NetSuite Help Center. This article was generated from official Oracle documentation and enriched with additional context and best practices.

Was this article helpful?

More in SuiteCloud Development Framework

View all SuiteCloud Development Framework articles →