Interview Questions

Monday, May 12, 2014

How to find Current Company name and Current user name in AX 2009

static void CurrentcompanyAndCurrentUser(Args _arg)
{
    str curcomp, curusr;
    ;
    curcomp= curExt(); // To print current company
    curusr  = curUserId(); // To print current user
    info(strfmt("Current company is %1",curcomp));
    info(strfmt("Current user is %1", curusr));
    //pause;
}

No comments:

Post a Comment