Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Retrieve parent data based on the selected child record

Posted on by

Hi All.

I want to retrieve parent data based on the selected child record. I m using Dynamics 365.

Accounts and Contacts entity relationship is 1:N.

I have an entity called Committee, in the main committee form I have a sub grid that is retrieving particular Contacts related to the Committee.  When I click on the + sign on the top right corner in the sub grid it will pops up a form to add Contact details. Now what I want to do is, when I enter the Contact name I want to fill the relevant Account name automatically.

6560.d365.png

Committee and Contacts relationship is N:M

can some please help me with this.

Thanks.

Dineth.

*This post is locked for comments

  • Dineth Profile Picture
    Dineth on at
    RE: Retrieve parent data based on the selected child record

    Thanks Ravi,

    I have used the w/f  option.

    Thanks.

  • Verified answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Retrieve parent data based on the selected child record

    Hi Dineth,

    You could do this easily with real time workflow. The only thing is that it will be populated on create and not when you select the contact.

    You could refer the below blog to achiev this using real time workflow.  

    www.powerobjects.com/.../retrieving-data-from-a-related-entity-crm-2013

    If you want to populate it upon selecting contact then you need to write JavaScript/ WEB API request to retrieve the account name.

    community.dynamics.com/.../ms-crm-2016-web-api-operations-retrieve-single-or-multiple-records

    Hope this helps.

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

Featured topics

Product updates

Dynamics 365 release plans