Editing Extension Manifest in NetSuite
Understand how to edit the extension manifest for optimal resource compilation.
The extension manifest in NetSuite is crucial as it contains necessary information to compile extension resources effectively. Making manual edits to this file is often required when you need to update or introduce new components, such as JavaScript, HTML templates, and Sass files.
What Is the Extension Manifest in NetSuite?
The manifest.json file in your extension's Workspace directory encapsulates all essential resources, including JavaScript, JSON, SuiteScript, HTML templates, Sass, and other assets. Generated automatically via the gulp extension:create command, this file assembles everything required to compile and activate your extension.
Important: Use gulp extension:local --preserve-manifest or gulp extension:deploy --preserve-manifest to avoid overwriting manual changes during testing or deployment.
Key Components of the Manifest File
Metadata
The manifest begins with metadata about the extension, like its name, vendor, and target versions. Properly defining these fields is crucial since they describe the fundamental nature and compatibility of your extension:
- name: Unique extension identifier (without spaces).
- fantasyName: Display label with special characters allowed.
- vendor: Identifies the extension vendor.
- target: Supported SuiteCommerce or SCA applications.
- target_version: Versions of the applications supported.
- version: Extension version in format
dd.dd.dd. - description: Optional description visible in NetSuite.
Assets
Define paths for image, font, and service assets. The system treats detected service files as assets, automatically deploying them to the backend when activated.
JavaScript
Declare JavaScript file paths for each application entry point. This includes defining comprehensive lists of files needed for applications like shopping, myaccount, and checkout.
Sass
List all Sass files and entry points. Proper ordering is critical, especially when dependencies affect the rendering sequence.
Who This Affects
- Developers: Need to ensure all resources are correctly listed and paths are maintained.
- Administrators: Must manage deployment settings and manual file integrity.
- Customization Teams: Handle unique naming conventions and integration specifics.
Key Takeaways
- Ensure
manifest.jsonaccurately reflects the extension's resources. - Use
--preserve-manifestto protect manual changes from being overwritten during deployments. - Verify the correct order and dependency resolution in Sass and JavaScript file listings.
Frequently Asked Questions (4)
How do I specify the JavaScript entry points for different applications in NetSuite?
Can I use the same JavaScript file for different application entry points?
Are all JavaScript files specified under each application loaded during deployment?
Is it possible to organize JavaScript files into modules within NetSuite?
Was this article helpful?
More in General
- Payment Date Prediction Feature in NetSuite
Payment Date Prediction in NetSuite utilizes machine learning to enhance financial planning by predicting invoice payment dates.
- NetSuite Ship Central Enhancements for Packing & Shipping
NetSuite Ship Central features enhance packing and shipping operations for improved efficiency and accuracy.
- New Role Setup for NetSuite AI Connector Service in 2026.1
The 2026.1 release adds a new role requirement for the NetSuite AI Connector Service, streamlining custom tool development.
- Generative AI Features in NetSuite 2026.1
Discover new generative AI features in NetSuite 2026.1, enhancing reporting, search, predictions, and development productivity.
Advertising
Reach General Professionals
Put your product in front of NetSuite experts who work with General every day.
Sponsor This Category