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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

N:N relationship record prefilter in a lookup

(0) ShareShare
ReportReport
Posted on by 25

My scenario is like the below :


There is an N:N relationship between the entity Contact and a custom entity Color Preference where multiple color preferences can be added.

I can choose Color Preferences from Account. Now I want to apply prefilter to a lookup in the Account where Contacts should be filtered based on the Color Preference choosed .

Thanks

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

    Hello,

    Check following post:

    www.itaintboring.com/.../

  • Kripesh Chalakkad Profile Picture
    25 on at

    Hi Butenko,

    This post was informative but I wanted to apply prefilter to a lookup field in the form and not to an add existing button.

    Kind Regards,

    Kripesh

  • Suggested answer
    Kripesh Chalakkad Profile Picture
    25 on at

    Hi all,

    I achieved my scenario by using addCustomView(). Check the following link.

    docs.microsoft.com/.../addcustomview

    Thanks and Regards

    Kripesh

  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Kripesh,

    In this case I believe you were looking for something that is similar to following post - missdynamicscrm.blogspot.com/.../crm-2013-using-addcustomfilter-to-get-filtered-lookup-field-based-on-linked-entity.html

  • Kripesh Chalakkad Profile Picture
    25 on at

    Hi Butenko,

    Thank you for your response.

    I was looking for the same.

    Best Regards,

    Kripesh

  • Inogic Profile Picture
    748 on at

    For applying custom filter on lookup you can refer below link : 

    https://www.inogic.com/blog/2015/08/apply-custom-filter-on-lookup-field-in-dynamic-crm-using-script/ 

     

    Hope this helps.

    Thanks!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 184 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 125

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans