Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Lookup is not filtering in search

(0) ShareShare
ReportReport
Posted on by 1,023

Hi,

I have a N: N relationship between two entities A and B. I placed the subgrid in entity A to add the records of entityB.

So, in the subgrid when I click on the Add exisitng button and type a value in the lookup, it returns all the values and the search is not working. (One thing I observed when I search in lookup it is just making the search word BOLD in the matching word instead of returning a single result)

Please advise how this can be fixed.

  • Suggested answer
    Modesto Iacopino Profile Picture
    on at
    RE: Lookup is not filtering in search

    Hello James,

     out of the box, we cannot filter the lookups when adding existing items to the relationship subgrids.

    You have to customize you CRM adding js function and configure the command with for example Ribbon Workbench.

    There are some example in github:

    https://github.com/ashlega/ItAintBoring.FilteredNtoN/blob/master/FilteredNtoN.js

    https://github.com/PaulNieuwelaar/filteraddexisting/blob/master/source_v9.js

    Regards

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 106 Most Valuable Professional

#3
Eugen Podkorytov Profile Picture

Eugen Podkorytov 102

Overall leaderboard

Product updates

Dynamics 365 release plans