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 UserInfo.id == curUserId(); //For getting Name
Info(“Email: “ + SysUserInfo.Email); Info(“Name: “ + UserInfo.Name);
Thanks&Regards
Santhosh Reddy
-It's kind of fun to do the impossible
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 UserInfo.id == curUserId(); //For getting Name
Then, we can print out his details Using
Thanks&Regards
Santhosh Reddy
-It's kind of fun to do the impossible
how this code can be used?
ReplyDelete