Employee
For help working with this record in the user interface, see Employee Information Management.
The internal ID for this record is employee
.
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 employee record is scriptable in both client and server SuiteScript.
Supported Functions
The employee record is fully scriptable — it can be created, updated, copied, deleted, and searched using SuiteScript. It can also be transformed.
Usage Notes
The following table provides usage notes for specific fields on this record.
Field Internal ID |
Field UI Label |
Note |
---|---|---|
Body Fields |
||
password |
Password |
To prevent users from accessing sensitive information such as password and credit card data, this field cannot be read in beforeSubmit user event scripts for external role users (for example, shoppers, online form users (anonymous users), customer center). |
password2 |
Confirm Password |
To prevent users from accessing sensitive information such as password and credit card data, this field cannot be read in beforeSubmit user event scripts for external role users (for example, shoppers, online form users (anonymous users), customer center). |
Scripting when Advanced Employee Permissions is Enabled
When the Advanced Employee Permissions feature is enabled keep the following in mind:
-
Before submit scripts can be run, either as the role that has manipulated the record or as an administrator, the script only has access to the information that has been submitted from the browser. In the case of an employee record being edited, the before submit script only has access to the fields or sublists the role editing the record is permitted to edit. Therefore, you cannot assume that all fields and sublists on the employee record are available in a before submit script.
-
After submit scripts can be run as administrator, which means complete access to an employee record. When the Advanced Employee Permissions feature is enabled, perform actions, such as setting the value of a field, as a role that is known to have the appropriate level of access or as an administrator.
For information about this feature, see Advanced Employee Permissions.
Transform Types
In the NetSuite Help Center, see record.transform(options) for examples on how to transform records.
Target Record Type |
Target Record Internal ID |
Field Defaults |
---|---|---|
Expense Report |
expensereport |
— |
Time |
timebill |
— |