Hi all,
Below is the line of code that will help you to get the Logged in employee details is he mapped with User in the Userinfo Form.
HcmWorker hcmWorker;
hcmWorker = hcmWorker::find(DirPersonUser::findUserWorkerReference(curUserId()));
info(strFmt("Current Worker name is : %1 ",hcmWorker.name()));
Thank you
Keep Daxing :)
No comments:
Post a Comment