Announcements
Hi There,
I need to find the user linked with employee.
I have hcmworker recid and I need to get the useinfo table from this.
Can you please guide me how can do it.
Thanks
Hi Maahi,
Link HCMWorker to DirPersonUser field. DirPersonUser store the user id that you can use to find data from userinfo table.
Thanks,
Satish Panwar
There is a static method on the HCMWorker table. You can use e.g:
userId = HCMWorker::findPersonUser(workerRecId);
Thanks All,
It worked.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to a top community star!
In our never-ending quest to help the Dynamics 365 Community members get answers faster …
Welcome to the next edition of the Community Platform Update. This is a status …
Stay up to date on forum activity by subscribing.