Single Entry Point Configuration for NetSuite Extensions
Explore the process of configuring a single entry point for extensions in NetSuite to enhance functionality and streamline integration.
Single Entry Point for an Extension
Single Entry Point for an Extension
If you created the files and folders described in Folder Structure, you can walk through this example to see how a single entry point works.
In the extension's manifest.json file, add the path to the ModuleOne.js file as the entry point for each application your extension will be applied to. For example, if your extension only applies to the checkout application, set the entry point as shown in the following example:
"javascript": { "entry_points": { "shopping": "Modules/ModuleOne/JavaScript/ModuleOne.js"Now if you run the gulp command to update the extension manifest:
gulp extension:update-manifestAnd then run a local test of your extension with this gulp command:
gulp extension:localWhen you access your local site and check your browser's developer console, you see this message:
ModuleOne loaded!This result is expected because, although the extension's manifest file has been updated and includes the ModuleTwo file in its list of files, you have not called the second module.
When your extension is loaded, only the entry point file in the manifest is called. Therefore, if you want additional code to be called, you need to add calls to that entry point file's mountToApp() method. To learn more, see Calling Files in Other Modules.
Frequently Asked Questions (4)
What is the purpose of setting an entry point in the manifest.json file for a NetSuite extension?
Do I need to run any specific commands after defining an entry point in a NetSuite extension?
How can I include additional modules in my NetSuite extension beyond the defined entry point?
What message should I expect to see in the browser's developer console when running a local test of my extension with a single entry point?
Was this article helpful?
More in General
- NetSuite 2026.1: Enhancements to Consolidated Reports and SuiteQL
NetSuite 2026.1 introduces new consolidated reports and SuiteQL tool for improved reporting and data integrity.
- Release Notes PDF Availability and Translations in NetSuite
NetSuite provides PDF files for each Release Note update, improving accessibility and user experience.
- Enhanced Commitment Credits for Flexible Billing in NetSuite
Commitment Credits in NetSuite SuiteBilling offer enhanced flexibility for usage-based billing across diverse services.
- New Parent Role Field for Custom Roles in NetSuite 2025.2
The new Parent Role field facilitates easier role management and visibility in NetSuite 2025.2 for administrators.
Advertising
Reach General Professionals
Put your product in front of NetSuite experts who work with General every day.
Sponsor This Category