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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 387

#2
timl Profile Picture

timl 340 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 301

Last 30 days Overall leaderboard