xSession.masterSessionId Method [AX 2012]
Retrieves the master session ID for the session that the xSession object covers.
The following example creates an xSession object by using the normal session ID (or the master session ID, if there is one).
static xSession getThisSession()
{
xSession xSession = new xSession(sessionid());
if (xSession.masterSessionId())
{
xSession = new xSession(xSession.masterSessionId());
}
return xSession;
}
Community Additions
ADD
Show: