Modules

filter

 

Objects/Functions

module (N/runtime)

SuiteScript 2.0

User.subsidiary

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

N/runtime Module
User.subsidiary
Property Description: The internal ID of the subsidiary for the current user.
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: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=User.subsidiary

Example:

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

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