Notifications
Announcements
No record found.
Hi Experts,
I need to fetch the email address of an employee's manager in my code. I am having employee's personnel number and I can use HCMWorker.email() for employee's email, sameway would be the simplest code to fetch the reporting manager's email Id ?
Thanks in advance.
Hi AX Beginner,
Yes, you could use this code to get the email of workers:
HcmWorker Worker; Worker = HcmWorker::findByPersonnelNumber(“Number”); info(strFmt(“Email : %1”, Worker.email()));
Hi Will,
Thanks for your comment, I need to get the employee's reporting manager's email Id. Consider Employee A is reporting to Employee B, I need to get the Email of Employee B. (Position is set by standard position hierarchy in AX)
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 565 Most Valuable Professional
André Arnaud de Cal... 450 Super User 2025 Season 2
Sohaib Cheema 250 User Group Leader