Impact Subcategory
The impact subcategory record is available only when the SaaS Metrics feature is enabled at Setup > Company > Enable Features (Administrator), on the Analytics subtab. To find this record, go to Setup > Accounting > Accounting Lists > Impact Subcategory. You can filter the accounting list to show only impact subcategories.
The internal ID for this record is impactsubcategory
.
See the SuiteScript Records Browser for all internal IDs associated with this record. For information about using the SuiteScript Records Browser, see Working with the SuiteScript Records Browser in the NetSuite Help Center.
For information about scripting with this record in SuiteScript, see the following:
Supported Script Types
The impact subcategory record is supported in both server and client SuiteScript.
Supported Functions
The impact subcategory record is fully scriptable – it can be read, created, updated, and deleted using SuiteScript.
Code Sample
The following sample shows how to create an impact subcategory.
//== Create Impact
Subcategory
var record= nlapiCreateRecord('impactsubcategory', {});
record.setFieldValue('name','test category 006');
record.setFieldValue('isinactive','T');
var isKey= nlapiSubmitRecord(record, {"enablesourcing":"true"});
alert('Impact subcategory created = ' + isKey);
The following sample shows how to edit an impact subcategory.
//== Edit Impact
Subcategory
var impactKey = '206';
var record = nlapiLoadRecord('impactsubcategory', impactKey , {'recordmode': 'dynamic'});
record.setFieldValue('name','test category 006-02');
record.setFieldValue('isinactive','F');
impactKey= nlapiSubmitRecord(record, {"enablesourcing":"true"});
alert('Impact subcategory updated = ' + impactKey);