web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Dynamic filtering of m...
Power Apps
Unanswered

Dynamic filtering of many-to-many lookup [Model-driven app]

(0) ShareShare
ReportReport
Posted on by 311

In my model-driven app, I have a many-to-many relationship between 2 tables.  On the form for one of the tables, I want to have a lookup into the other table, but be able to dynamically filter the other table options.  I've seen some many-to-many PCF controls that allow for filtering with FetchXML in the settings, but not the ability to change the filter FetchXML based on form values.  Has anyone seen a solution for this?

I have the same question (0)
  • a33ik Profile Picture
    3,306 Most Valuable Professional on at

    Hello,

    I would recommend to keep using OOB grids and just use setFilterXml - https://carldesouza.com/filtering-subgrids-in-dynamics-365-power-apps-with-setfilterxml/

    You will be able to use filtering based on any type of attribute.

  • tschopp Profile Picture
    311 on at

    Hi a33ik,

    That will filter the contents of the subgrid, but will it filter the options that are available if the user clicks on "Add Existing <table name>"?  That's the list I need filtered.

  • Verified answer
    a33ik Profile Picture
    3,306 Most Valuable Professional on at

    Ok. In case you want to add filter there you should check this post - https://blog.magnetismsolutions.com/blog/paulnieuwelaar/2018/05/17/filter-n-n-add-existing-lookup-dynamics-365-v9-supported-code/

  • tschopp Profile Picture
    311 on at

    Thanks a33ik!  That looks like what I need.  I'll give that a try and let you know if it works.

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

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard