Feb 21, 2012

how to display a welcome message when the user login into AX

Today i want to share with you how to display a welcome message when the user login into AX in

Go to Info class---> double click on StartUpPost method and paste this code into code editor

void startupPost()
{
    UserInfo UserInfo;
    select Name from UserInfo where UserInfo.id==curUserId();
    info('Welcome to '+UserInfo.name);
}

Close your application once and open again you will get the info message.