≡ Menu

Exploring the current session user Id in AX 2012

You can get current session log in id in AX 2012 by this method

 

str curUserId()

 

 

Complete example is as follow.

static void curUserInfo(Args _arg)
{
    str sUserId;
    ;
    sUserId = curUserId();
    info "Current user ID is " + sUserId;

}

 

{ 0 comments… add one }

Leave a Comment