cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bjarvis
Advocate I
Advocate I

Filter gallery on selected item from N:N relationship - Dynamics 365

I have 2x entities in Dynamics 365 (Customer Asset and Asset Advisory).

There is an N:N relationship between the Entities.

In Dynamics, I currently add an Asset Advisory to a Customer Asset by using a Sub-Grid.

 

I would like to make a Power App to embed in the Customer Asset Form in Dynamics that will display these Asset Advisories in a better way.

 

My current thought process is: Get the id of the Customer Asset then filter the Asset Advisories to show only those that are linked to that Customer Asset.

 

However, so far I'm struggling to work out how I can do that. There doesn't seem to be anything linking the two entities in CDS? Any pointers on how I should tackle this?

1 ACCEPTED SOLUTION

Accepted Solutions
GarethPrisk
Resident Rockstar
Resident Rockstar

If you are using an Embedded app, you will have the context of the parent record and (most) of its fields/relationships.

You can then setup a Gallery/Data Table with [@ModelDrivenFormIntegration].Item.{ManyToManyRelationshipName} as the Items.

This will give you some better options for viewing the records, but will run into limitations for adding the records and accessing the related records (beyond simple fields). Good luck!

View solution in original post

2 REPLIES 2
GarethPrisk
Resident Rockstar
Resident Rockstar

If you are using an Embedded app, you will have the context of the parent record and (most) of its fields/relationships.

You can then setup a Gallery/Data Table with [@ModelDrivenFormIntegration].Item.{ManyToManyRelationshipName} as the Items.

This will give you some better options for viewing the records, but will run into limitations for adding the records and accessing the related records (beyond simple fields). Good luck!

View solution in original post

That's exactly what I needed, thanks! 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,121)