Create the Extension Framework for NetSuite Development
This guide teaches how to create an extension framework in NetSuite, both manually and with the gulp command. Create the Extension Framework
Create the Extension Framework
Create the Extension Framework
You can create an extension manually or by using the gulp extension:create command as described in Create a Baseline Extension. For this tutorial, create your extension manually as described in the following steps.
-
Access the top-level extension development directory you created when you installed the extension developer tools.
-
In the top-level extension development directory, unless it already exists, create a new directory named Workspace.
-
In the Workspace directory, set up the folders for this extension so that they look like this:
javascript1Workspace/2 CDRExample3 Modules/4 CDRExample/5 JavaScript/6 Templates/ -
In the Workspace/CDRExample directory, create a manifest.json file and place the following code in that file.
json1{2 "name": "CDRExample",3 "fantasyName": "Context Data Request Example",4 "vendor": "ExampleVendor",5 "version": "1.0.0",6 "type": "extension",7 "target": "SCA,SCS",8 "target_version": {9 "SCA": ">=20.2.0",10 "SCS": ">=20.2.0"11 },12 "description": "An example extension to demonstrate contextDataRequest",13 "skins": [],14 "templates": {15 "application": {16 "shopping": {17 "files": [18 "Modules/CDRExample/Templates/cdr_example.tpl"19 ]20 }21 }22 },23 "javascript": {24 "entry_points": {25 "shopping": "Modules/CDRExample/JavaScript/CDRExample.js"26 },27 "application": {28 "shopping": {29 "files": [30 "Modules/CDRExample/JavaScript/CDRExample.js",31 "Modules/CDRExample/JavaScript/CDRExample.View.js"32 ]33 }34 }35 },36 "local_folder": "Workspace\\CDRExample"37}
Frequently Asked Questions (4)
Do I need any specific version of the Extension Developer Tools to use SuiteScript 2.0 files?
What are the prerequisites for creating the extension framework manually?
What directory structure is required when creating an extension manually?
How does the 'manifest.json' file influence the extension creation?
Was this article helpful?
More in Platform
- RecordType Property for SuiteQL Metadata Retrieval in NetSuite
RecordType property retrieves metadata for SuiteQL queries. Essential for fetching valid fields and relationships.
- Deploy and Local Distribution Directories in SuiteCommerce
Deploy and local distribution directories in SuiteCommerce manage file organization for deployments and local server setups effectively.
- Create Custom Module.ServiceController in NetSuite 2019.2
Create a Custom Module.ServiceController to handle HTTP requests in NetSuite 2019.2. Step 1: Create a Custom [Module].ServiceController
- How to Override a Template File in SuiteCommerce Advanced
This guide provides steps to effectively override a template file in SuiteCommerce Advanced, ensuring customization and best practices.
Advertising
Reach Platform Professionals
Put your product in front of NetSuite experts who work with Platform every day.
Sponsor This Category