cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Super User II
Super User II

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

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
Highlighted
Super User II
Super User II

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

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

Highlighted
Advocate I
Advocate I

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

That's exactly what I needed, thanks! 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (5,969)