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

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

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
Helper I
Helper I

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

That's exactly what I needed, thanks! 

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,690)