Single Entry Point for an Extension
Documentation article about Single Entry Point for an Extension
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
- Field Service Management Enhancements and Bug Fixes for 2026
Overview of the 2026 Field Service Management SuiteApp updates showcasing enhancements and bug fixes.
- Example
Documentation article about Example
- Integrating NetSuite Connector with Shopify: Setup Guide
Integrate your NetSuite Connector with Shopify seamlessly by following this setup guide, including key authorization steps.
- Skins
Documentation article about Skins
Advertising
Reach General Professionals
Put your product in front of NetSuite experts who work with General every day.
Sponsor This Category