Skip to main content
Dynamics 365 Community / Forums / Finance forum / Init fields from employee
Finance forum
Suggested answer

Init fields from employee

editSubscribe (2) 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?

Attachments
  • Waed Ayyad Profile Picture
    Waed Ayyad 2,076 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
    Judy 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
    Waed Ayyad 2,076 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
    Mohamed Amine Mahmoudi 3,905 User Group Leader on at
    Finance and Operations Form customization
    Hi,
     
    try to override modified method on datasource.
     
    Best regards,
    Mohamed Amine MAHMOUDI

Helpful resources

Quick Links

New Blog Features Released!

Check out the new community blog features for viewers and authors…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,183 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,733 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Featured topics

Product updates

Dynamics 365 release plans