Analytical Impact
The analytical impact record is available only when the SaaS Metrics feature is enabled at Setup > Company > Enable Features (Administrator), on the Analytics subtab. With this feature enabled, you can open the item you want to collect data about, set a start date, and start tracking SaaS metrics for transactions and subscriptions that contain that item. After the item is set up, source records that contain the item can generate Analytical Impact records.
If you need historical reporting of SaaS metrics for transactions that already include these items, you can set the start date in the past. Adding an end date helps to prevent errors in reporting and gives you greater control in defining what's included in the report.
The internal ID for this record is analyticalimpact
.
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 analytical impact record is supported in both server and client SuiteScript.
Supported Functions
The analytical impact record is scriptable. It can be read, updated, deleted, and searched using SuiteScript, with the following exceptions:
-
the template is stored, so is not scriptable
-
the System Notes sublist is search-only
Code Sample
The following sample shows how to edit an analytical impact event, monthly impact amount, impact category and impact subcategory.
//== edit Analytical Impact Event, monthly impact amount, impact category and impact subcategory
var analyticalimpactKey = '2';
var adjustamount ='20.00';
var analyticalimpactCategoryKey = '2';
var analyticalimpactSubcategoryKey = '-19';
var record = nlapiLoadRecord('analyticalimpact',analyticalimpactKey, {recordmode: 'dynamic'}); record.selectLineItem('analyticalimpactevent', 1);
var adjustamount = record.getCurrentLineItemValue('analyticalimpactevent','adjustmonthlyimpactamount'); alert("Adjust Monthly Impact Amount = " + adjustamount);
record.setCurrentLineItemValue('analyticalimpactevent', 'adjustmonthlyimpactamount', adjustamount); record.setCurrentLineItemValue('analyticalimpactevent', 'adjustimpactcategory', analyticalimpactCategoryKey); record.setCurrentLineItemValue('analyticalimpactevent', 'adjustimpactsubcategory', analyticalimpactSubcategoryKey);record.commitLineItem('analyticalimpactevent');
nlapiSubmitRecord(record);
on sql debugger page, select Api: 1.0