web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Answered

Sub grid for a sub grid

(0) ShareShare
ReportReport
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!

I have the same question (0)
  • Verified answer
    LeoAlt Profile Picture
    16,331 Moderator on at

    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

  • Chris Haley Profile Picture
    on at

    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 :)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 75 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 52 Super User 2025 Season 2

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 42 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans