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.



3 comments:

Naresh said...

after canged the code,to get this message,we need to export and import the class

Dynamics AX Solutions said...
This comment has been removed by the author.
Dynamics AX Solutions said...

Hi Naresh,

In 2009 it is not required.

In 2012 you just need to forward compile the application.

Regards,
Venkatesh.