Assets

Documentation article about Assets

·1 min read·View Oracle Docs

Assets

Assets

The assets object defines paths to the images and fonts located in the extension directory's assets folder. This defines an array for each image and font used. These paths are relative to the extension's assets folder path. Extensions treat services as assets. These are created on NetSuite servers when you activate/deploy your extension.

If the extension developer tools detect a file name with the pattern XYZ.ServiceController.js, they create the service (.ss) file and add a reference in the manifest. Later, when you activate the extension, the .ss file deploys to the backend as an asset.

json
1//...
2"assets": {
3 "img": {
4 "files": []
5 },
6 "fonts": {
7 "files": []
8 },
9 "services": {
10 "files": [
11 "services/MyCoolModule.Service.ss",
12 "services/AdditionalCoolModule.Service.ss"
13 ]
14 }
15},
16//...

Frequently Asked Questions (4)

How are assets paths defined in a NetSuite extension?
Assets paths in a NetSuite extension are defined relative to the extension's assets folder path. This includes paths for images, fonts, and services used within the extension.
What happens when an extension developer tool detects a file name with the pattern XYZ.ServiceController.js?
When an extension developer tool detects a file name with the pattern XYZ.ServiceController.js, it creates the corresponding service (.ss) file. This file is then referenced in the manifest and deployed as an asset when the extension is activated.
Are services considered assets in NetSuite extensions?
Yes, services are considered assets in NetSuite extensions. They are created on NetSuite servers when you activate or deploy your extension.
Where are services deployed after activating a NetSuite extension?
Services are deployed to the backend as an asset after you activate a NetSuite extension.
Source: Assets 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 General

View all General articles →