Notifications
Announcements
No record found.
I'm working with an editable subgrid in Dynamics 365 and need to filter a lookup column that has a many-to-many self-referencing relationship. Here's my scenario:
Setup:
Requirement: When users click on the self-referencing lookup in the editable subgrid, I want to filter it to show only child records that belong to the same parent record. Essentially, when working within a parent record's subgrid, users should only be able to create many-to-many relationships between child records that share the same parent.
What I've Tried:
addPreSearch
addCustomFilter
removePreSearch
addCustomView
Editable subgrid = uses the new Power Apps Grid control, which supports inline editing.
Lookup filtering must be done using JavaScript + addOnLookupTagClick or custom JavaScript filtering via formContext.getControl().addPreSearch().
formContext.getControl().addPreSearch()
As of now, the standard addPreSearch() approach works only in form-level lookups, not directly in Power Apps editable subgrid lookups.
addPreSearch()
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 144 Super User 2025 Season 2
#ManoVerse 59
Gerardo RenterÃa Ga... 52 Most Valuable Professional