Modules

filter

 

Objects/Functions

module (N/runtime)

SuiteScript 2.0

runtime.getCurrentSession()

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=runtime.getCurrentSession() for more information.

N/runtime Module
runtime.getCurrentSession()
Method Description: Returns a runtime.Session object that represents the user session for the currently executing script. Use this method to get session objects for the current user session. If you want to get properties for the script or user, use runtime.getCurrentScript() or runtime.getCurrentUser() instead.
Returns: runtime.Session
Supported Script Types: Client and server scripts For more information, see SuiteScript 2.0 Script Types.
Governance: None
Module: N/runtime Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=runtime.getCurrentSession()

Example:

// Code Example 1
// Add additional code
//...
var sessionObj = runtime.getCurrentSession();
//...
// Add additional code

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