Goal

The internal ID for this record is goal. This record also includes the subrecords goalcomments and goalevaluations. For more details about this record and how to work with it in the UI, see Goal Management for Employees and Managers.

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.

Usage Notes

If you copy a goal, the status of the copied goal is set to Planned.

Code Sample

The following sample shows how to open a goal record, enter details for the goal, and then save the goal.

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

goal.setValue({
   fieldId: 'details',
   value: 'Work harder than ever before'
});

goal.save(); 

          

Related Topics

General Notices