Performance Metric

The internal ID for this record is performancemetric. For more details about this record and how to work with it in the UI, see Goal Tracking with Performance Metrics.

This record becomes available when the Performance Management feature is enabled.

See the SuiteScript Records Browser for all internal IDs associated with this record.

Note:

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 help topics:

Support Script Types

This record is scriptable in both server and client SuiteScript.

Supported Functions

This record is fully scriptable, which means it can be created, edited, copied, deleted, and searched.

Code Sample

The following sample shows how to open a performance metric record, change the name of the performance metric, and then save the performance metric.

            var metric= record.load({
   type: record.Type.PERFORMANCE_METRIC,
   id: 1
});

metric.setValue({
   fieldId: 'name',
   value: 'Average Days to Close'
});

metric.save(); 

          

Related Topics

General Notices