Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=User.department for more information.
N/runtime Module
User.department
Property Description:
The internal ID of the department 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.department
Example:
// Code Example 1
// Add additional code
//...
var userObj = runtime.getCurrentUser();
log.debug('Internal ID of current user department: ' + userObj.department);
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4296669751.html