Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Add Custom Filter to a field using linked entities using Javascript in Dynamics 365

Posted on by Microsoft Employee

I have a field where I want to add a custom filter. This filter will be based on the value of a linked entity.

But, I found out that we cannot have complex queries using addCustomFilter() method.

What is the other way to do the same?

*This post is locked for comments

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Add Custom Filter to a field using linked entities using Javascript in Dynamics 365

    Hi Richa,

    Take a look below post .

    community.dynamics.com/.../278632

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Add Custom Filter to a field using linked entities using Javascript in Dynamics 365

    Hello,

    Check following post - missdynamicscrm.blogspot.com/.../crm-2013-using-addcustomfilter-to-get-filtered-lookup-field-based-on-linked-entity.html

  • Suggested answer
    Hussein Wahba Profile Picture
    Hussein Wahba 223 on at
    RE: Add Custom Filter to a field using linked entities using Javascript in Dynamics 365

    You cannot add complex query to field using addCustomFilter this function uses filter node only but you can add it using addCustomView.

    you can check how to achieve that by reviewing this blog article.

    www.inogic.com/.../add-custom-view-in-lookup-and-disable-all-the-other-views

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans