Wednesday, 15 June 2011

Getting the Name of logged In User Name and his Email

Hi All
      We can  get the Logged In User in Axapta Using the Function curUserId().Information which is relevant to the Particular User will be stored in SysUserInfo and  UserInfo Table.Now we can get the Email Id and Full Name of the Current Logged in User by doing as Follows:

  select Email from SysUserInfo where SysUserInfo.Id == curUserId();  //For getting Email Id

  select Name from UserInfo where == curUserId(); //For getting Name
Then, we can print out his details Using
  Info(“Email: “ + SysUserInfo.Email); Info(“Name: “ + UserInfo.Name); 

Santhosh Reddy
 -It's kind of fun to do the impossible


1 comment: