Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

How to show inherited view depended on value of look up field

(0) ShareShare
ReportReport
Posted on by 2

Hello guys,

I have the following case and I'm looking for a solution.

We have 2 Entities "Product" and "Carports" with N:N relationship. The "Product" entity was created not completely right and we cannot create inheriting as it should be.

The field "Parentproductid"  which is a lookup field to Product, exists on the form, and depending on this field we know if we are working with UseCode or Product. (so, it means that we actually use 1 entity for 2 different cases).

  • if the field "Parentproductid" is empty - it's a Model (a top-level)
  • if the field "Parentproductid" contains data - it's a Usecode (which is actually a child of Model)

I've added a subgrid of "Carports" to the "Product" form and I've added a few carports to the list for Model.

The question: is there some way how I can show the list of the Carports on Usecode level by inheriting them from Model?

  • Suggested answer
    Eiken Profile Picture
    on at
    RE: How to show inherited view depended on value of look up field

    Hi,

    Do you want to display Carports associated with a Usecode entity in the subgrid of Model entity?

    There is no OOTB solution to achieve it.

    But you can writte a JS code to apply FetchXML query on the subgrid to show only those records in the subgrid.

    Please refer to the following link.

    Filter Subgrid in Dynamics 365 CRM (Version 9.2) – Dynamics CRM 2013/2015/2016/Dynamics 365 (wordpress.com)

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

News and Announcements

Now Available: 2025 Release Wave 2

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Adis Profile Picture

Adis 136 Super User 2025 Season 1

#2
Sohail Ahmed Profile Picture

Sohail Ahmed 81

#3
Jonas "Jones" Melgaard Profile Picture

Jonas "Jones" Melgaard 77 Super User 2025 Season 1

Product updates

Dynamics 365 release plans