How to get AOS Details in ax 2012

How to get AOS Details in ax 2012:-

Hello All,The following is the information will help to get AOS details.

Session is the class having useful methods to get AOS name and Port number,UserName.

Session contains static methods which can be called without creating object.

Session extends xSession class is having more information.

The following is the code.

Session   session;
session = new Session();
info(strFmt("%1 %2  %3",session.AOSName(),session.aosPort(),session.UserId()));

SysClientSessions,SysServerSessions,SysUsersonline are the classes and SysUsersOnline is the form to get more information regarding Users,Sessions,etc.,

Hope this will helps you.



Comments

Popular posts from this blog

x++ code to add hyperlink to a field in D365FO

x++ code to get Vendor Email Address based on Purpose in Dynamics 365 for Operations

x++ code to get Customer Address based on purpose in ax 2012