Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Init fields from employee

(1) ShareShare
ReportReport
Posted on by 4

Hello guys! I have a custom form in D365 f&o that has employee ID, name, phone and email fields. Now, on the basis of Employee ID (if i select employee Id in my custom form), it should auto populate all other fields in that form from standard from HcmWorker. 
Which method should I override in my custom form to achieve this?

  • Waed Ayyad Profile Picture
    8,430 Super User 2025 Season 1 on at
    Init fields from employee
    Hi,
     
    Is your issue resolved? If yes, please verify the answers that helped you.
     
    Thanks,
    Waed Ayyad,
     
  • Suggested answer
    Judy Profile Picture
    Microsoft Employee on at
    Init fields from employee
    Hi, you can use the display method to populate linked field d365fo, please follow the detailed steps described in the blog:
    Hope it helps.
     
    Best Regards,
    Judy
  • Suggested answer
    Waed Ayyad Profile Picture
    8,430 Super User 2025 Season 1 on at
    Finance and Operations Form customization
    Hi,
     
    You can add your code to the modified method of the Id field on the data source, but I have one question, why you added the same fields (name, phone and email fields) on your table? you can add relation between your table and HcmWorker and only retrieve your data on the form without needing to refill new fields on your custom table?
     
     
    Thanks,
    Waed Ayyad
    If this helped, please mark it as "Verified" for others facing the same issue
     
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    22,999 Super User 2025 Season 1 on at
    Finance and Operations Form customization
    Hi,
     
    try to override modified method on datasource.
     
    Best regards,
    Mohamed Amine MAHMOUDI

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.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 318 Most Valuable Professional

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 273

#3
Jonas "Jones" Melgaard Profile Picture

Jonas "Jones" Melgaard 181 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans