Home

Tuesday, June 14, 2016

Get current user name x++ AX 2012

when it is require to show current user name related with worker try below code in AX 2012.


static void getUserName(Args _args)
{
    info(strFmt('%1',curUserId()));
    
    info(strFmt('%1',HcmWorker::userId2Worker(curUserId())));
    
    info(HcmWorker::find(HcmWorker::userId2Worker(curUserId())).name());
}

1 comment:

  1. Best Betway Online Casino - Kadangpintar
    Betway is one of the most reliable online gaming providers 인카지노 in Malaysia. They offer over 2,000 slots and casino 1xbet games including blackjack, 온카지노 roulette,

    ReplyDelete