Government-Issued ID Tracking

The Government-Issued ID Tracking feature enables you to track a variety of government-issued identification information about your employees to ensure that you have accurate documentation for your employees’ travel, driving qualifications, and tax compliance.

For help working with this record in the UI, see Government-Issued ID Tracking.

The following record types are related to the Government-Issued ID Tracking feature:

Driver’s License

The driver’s license record captures the driver’s license number for a particular employee.

The internal ID for this record is driverslicense. For more details about this record and how to work with it in the UI, see Government-Issued ID Tracking.

This record becomes available when either the Basic Government-Issued ID Tracking or Advanced Government-Issued ID Tracking features are 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:

Supported Script Types

This record is scriptable in both server and client SuiteScript. However, user event scripts are not supported.

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 create a new driver’s license for an employee.

          var dlRecord = record.create({
    type: 'driverslicense'
});
dlRecord.setValue({
    fieldId: 'employee',
    value: '123'
});
dlRecord.setValue({
    fieldId: 'numbervalue',
    value: '123456789'
});
dlRecord.setValue({
    fieldId: 'nameondocument',
    value: 'John Doe'
});
dlRecord.setValue({
    fieldId: 'issuer',
    value: 'United States Government'
});
dlRecord.setValue({
    fieldId: 'class',
    value: 'M3'
});
dlRecord.setValue({
    fieldId: 'dateofissue',
    value: new Date('10/12/2017')
});
dlRecord.setValue({
    fieldId: 'expirationdate',
    value: new Date('10/12/2027')
});
dlRecord.setValue({
    fieldId: 'description',
    value: 'This is a Drivers License'
});
var driversLicenseInternalId = dlRecord.save(); 

        

Passport

The passport record captures the passport number for a particular employee.

The internal ID for this record is passport. For more details about this record and how to work with it in the UI, see Government-Issued ID Tracking.

This record becomes available when either the Basic Government-Issued ID Tracking or Advanced Government-Issued ID Tracking features are 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:

Supported Script Types

This record is scriptable in both server and client SuiteScript. However, user events are not supported.

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 create a new passport number for an employee.

          var passportRec = record.create({
    type: 'passport'
});
passportRec.setValue({
    fieldId: 'employee',
    value: '123'
});
passportRec.setValue({
    fieldId: 'numbervalue',
    value: '123456789'
});
passportRec.setValue({
    fieldId: 'issuer', 
    value: 'United States Government'
});
passportRec.setText({
    fieldId: 'nationality',
    value: 'American'
});
passportRec.setValue({
    fieldId: 'nameondocument',
    value: 'John Doe'
});
passportRec.setValue({
    fieldId: 'dateofissue',
    value: new Date('10/12/2017')
});
passportRec.setValue({
    fieldId: 'expirationdate',
    value: new Date('10/12/2027')
});
passportRec.setValue({
    fieldId: 'description',
    value: 'This is a Passport'
});

var passportInternalId = passportRecord.save(); 

        

Other Government-Issued ID

The other government-issued ID record captures ID types other than driver’s license and passport.

The internal ID for this record is othergovernmentissuedid. For more details about this record and how to work with it in the UI, see Government-Issued ID Tracking.

This record becomes available when the Advanced Government-Issued ID Tracking 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:

Supported Script Types

This record is scriptable in both server and client SuiteScript. However, user events are not supported.

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 create a new government-issued ID type.

          var otherGovIdRec = record.create({
    type: 'othergovernmentissuedid'
});
otherGovIdRec.setValue({
    fieldId: 'employee',
    value: '123'
});
otherGovIdRec.setText({
    fieldId: 'idtype',
    value: 'Social Insurance Number (SIN)'
});
otherGovIdRec.setValue({
    fieldId: 'numbervalue',
    value: '123456789'
});
otherGovIdRec.setValue({
    fieldId: 'nameondocument',
    value: 'John Doe'
});
otherGovIdRec.setValue({
    fieldId: 'issuer',
    value: 'United States Government'
});
otherGovIdRec.setValue({
    fieldId: 'expirationdate',
    value: new Date ('10/12/2027')
});
otherGovIdRec.setValue({
    fieldId: 'description',
    value: 'This is a Other Government ID'
});

var otherGovIdInternalId = otherGovIdRecord.save(); 

        

Related Topics

General Notices