Modules

filter

 

Objects/Functions

module (N/runtime)

SuiteScript 2.0

User.contact

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=User.contact for more information.

N/runtime Module
User.contact
Property Description: The internal ID of the currently logged-in contact.  If no logged-in entity or other entity than contact is logged in, then 0 is returned as value.
Type: number (read-only)
Supported Script Types: Client and server scripts For more information, see SuiteScript 2.0 Script Types.
Module: N/runtime Module
Since: 2019.1
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=User.contact

Example:

// Code Example 1
// Add additional code
//...
var userObj = runtime.getCurrentUser();
log.debug('Internal ID of current contact: ' + userObj.contact);
//...
// Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_1554920187.html