Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Autopopulate lookup values coming from parent entity

Posted on by 873

Hello everyone,

With reference to this post: (+) Set field value on another table automatically after record creation - Dynamics 365 General Forum Community Forum that was solved based on   assistance, I have two tables linked as (Project Resource Table (1:N)-> Schedule table).

What I want to achieve is the below:

  • When I click on a new item from the grid and from the Project resource table which is the parent entity, I would like to populate the project name and the resource name fields that are coming from the Project Resource ID field that is being populated automatically on the form of the schedule table which is the child entity and that Project Resource ID already has those two values assigned on the parent entity (Project Resource Table).

Table-Aa.PNGTable-B.PNG

RelationshipType.PNG

I have tried to filter the lookup field as below but it is not populating the values when I click new item directly from the sub-grid:

8357.Capture.PNG

What is the best way to achieve the above? I am doing something wrong or it should be done in a different way?

I would highly appreciate if you can provide an example.

Best regards,
EBMRay

  • Verified answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: Autopopulate lookup values coming from parent entity

    Hi,

    You can achieve your requirement with calculated field as well

    docs.microsoft.com/.../define-calculated-fields

    If mapping mentioned in above post does not work then try with calculated field. Also you can use Real Time Workflow to auto populate those fields value and you can mark read only on from.

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • EBMRay Profile Picture
    EBMRay 873 on at
    RE: Autopopulate lookup values coming from parent entity

    Hi a33ik ,

    Thank you so much for providing this amazing post.

    I was able to achieve my requirements.

    Btw I am one of your followers and keep up the good work!

    Best regards,

    EBMRay

  • Verified answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Autopopulate lookup values coming from parent entity

    Hello,

    The easiest way for you is to use "Mapping". Check this post that can help you - www.marksgroup.net/.../

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans