Employee Change Request Type

Important:

This topic describes a feature that is currently available only in some customer accounts. For information about the availability of this feature for your account, please contact your NetSuite account manager.

Employee change request types provide managers with the types of changes they can initiate for their direct reports. For more information about employee change request type, see Setting Up Employee Change Request Types.

The internal ID for this record is employeechangerequesttype.

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:

Prerequisites

To use the employee change request type record, you must enable and set up the Employee Change Requests, Effective Dating, and Advanced Employee Permissions features at Setup > Company > Enable Features, on the Employees tab.

Supported Script Types

The employee change request type record is scriptable in both client and server SuiteScript.

Field IDs

Field Label

Internal ID

Type

Name

name

text

Description

description

text

Change Reason

changereason

select

Supported Functions

The following SuiteScript functionality is supported:

Copy and transform are not supported.

Code Sample

The following code sample shows how to create an employee change request type.

          require(['N/record'], function(record){
    var empChangeReqType = record.create({
        type : record.Type.EMPLOYEE_CHANGE_REQUEST_TYPE
    });
    empChangeReqType.setValue({
        fieldId : 'name',
        value: 'Test 2'
    });
    empChangeReqType.setValue({
        fieldId : 'description',
        value: 'Test'
    });
    empChangeReqType.setValue({
        fieldId : 'changereason',
        value: "10"
    });
    empChangeReqType.save();
}); 

        

Related Topics

General Notices