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

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

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
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (28,476)