Skip to main content

Notifications

Service | Customer Service, Contact Center, Fie...
Answered

Sub grid for a sub grid

Posted on by

Experts...

Is it possible for me to nest entities via sub grids in a single form?

I'm having a scenario where a case has a 1 to many relationship with 'custom entity B'.

Entity B has a 1 to many relationship with 'custom entity C'.

I'd like my cases form to have a sub grid showing related records from entity B - that bit is easy.

Can I also add another sub grid on the form, such that when a user selects a record in the entity B sub-grid, I then see its child records from entity C in another subgrid? 

It seems like a straightforward requirement but I couldn't see how to do it! Any guidance, out of the box forms I could reference where this is standard behaviour, any blogs/walk throughs you can point me at?

Thanks!

  • Chris Haley Profile Picture
    Chris Haley on at
    RE: Sub grid for a sub grid

    Thanks Leo!

    I used the nested grid view and it did the job for my POC but it's great to know I could pass this to a pro dev to get a more refined solution if needed.

    Top answer sir :)

  • Verified answer
    LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Sub grid for a sub grid

    Hi partner,

    There is an OOB way to show nest entity records in subgrid.

    For example,  I have a contact subgrid in my account form, and I want to show each contact's case in the account form also, I should do the following steps.

    1.Open the Account form editor, add an editable contact subgrid.

    pastedimage1586225775316v1.png

    2.In the editbale grid properties, we should configure the nested grid view.

    Select the child entity and view in "Nested grid view", select the relationship lookup field in "Nested grid parent ID".

    pastedimage1586225855588v2.png

    Save and publish.

    3.Results.

    pastedimage1586226179812v3.png

    Attention that the Nested grid view dose not support classic client, it is only available in phone, tablet and UCI.

    pastedimage1586226275303v4.png

    https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/customize/make-grids-lists-editable-custom-control

    If you still want to show 2 subgrids in a form, you could add an HTML page as web resource in the form and show the related records when select different records in subgrid B. This needs some JS code to do.

    Best Regards,

    Leo

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans