Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Is there a way to get the related field of a M:N relationship to display on the parent record?

Posted on by 25

Hi, I am still in the learning phases of Dynamics 365.

I have a many to many relationship between a reports form and classrooms. I know with M:N relationships, you cannot pull that information forward onto the parent record view. 

Is there a way to get the related field of a M:N relationship to display on the parent record? I have tried the multi select lookup option, but does not do what I need it to do.

Any guidance is much appreciated. 

Thank you!

  • Suggested answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    RE: Is there a way to get the related field of a M:N relationship to display on the parent record?

    Hi ams9, 

    I have tried the multi select lookup option, but does not do what I need it to do.

    What do you need? 

    In the form, you can show related records in the sub-grid.

    If you want to show parent and child records in the same view, maybe you need achieve it through creating Reports.

    https://learn.microsoft.com/en-us/power-apps/user/create-report-with-wizard 

    For example, Account and custom are many to many relationship.

    pastedimage1674107163747v1.png

    (1)Sub-grid:

    pastedimage1674109497006v2.png

    (2)Report:

    pastedimage1674109852960v4.png

    pastedimage1674110389109v5.png

  • Suggested answer
    Pradeep Rai Profile Picture
    Pradeep Rai 5,490 Super User 2024 Season 2 on at
    RE: Is there a way to get the related field of a M:N relationship to display on the parent record?

    Hi,

    You can use below PCF Control to show data in dropdown format for N:N relationship:

    https://pcf.gallery/n-to-n-multiselect/

    Also, when we create the N:N relationship then in CRM we can add Subgrid on both entities. For e.g. A and B have N:N relationship then on A we can add subgrid of B and on B we can add Subgrid of A.

    for more info:

     

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans