Making records configurable using configuration in extension.
1. In extension go to configuration folder.
2. Select the group where you want to store the records, and type of records and subtab within the main tab, title and description and If you want you can fill default value of the record as shown below example
{
"type": "object",
"properties": {
"ProductDetailDesc.config": {
"group": "extensions",
"subtab": "ProductDetailDesc_subtab",
"type": "string",
"title": "ProductDetailDesc_Title",
"description": "Config description example",
"default": "Default config example"
}
}
}
3. Then for these records will be shown in netsuite configuration after deploy.
4. We can call the records by it’s unique id, with the help of dependencies “SC.Configuration”
For example:
var productDetails = Configuration.get('ProductDetailDesc.config');
like this, we can call that record value and store it in a variable.