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 :
Microsoft Dynamics CRM (Archived)

Dynamics CRM 365 Online Lookup Field Filters

(0) ShareShare
ReportReport
Posted on by

How do I add a filter to a lookup field. Here's what I am trying to do exactly:

When a support rep creates a case in CRM they have to enter the Customer. The Customer field on the case is a lookup field for the Account entity. The problem is that we have many accounts with the same name (not duplicates just the same legal name). The majority of those accounts are not customers so a great fix for us would be to only show accounts that we have flagged as Active Customers (both of those are in fields on the account record) in the Customer lookup field. Is there a way to apply a filter to the lookup field so that it only returns values that meet the filter criteria? In this case Status: Active and Type: Customer. 

*This post is locked for comments

I have the same question (0)
  • Gopalan Bhuvanesh Profile Picture
    11,401 on at

    Hi

    You can create a new view and set that view in the lookup field properties.

  • Suggested answer
    ashlega Profile Picture
    34,477 on at

    Hi Imnjones,

      Are you talking about the out of the box customer field or is it a field you created?

     I don't think you can choose lookup view for the default customer field, so there might be a few alternatives:

    - update default look-up view for accounts. That will affect all other account lookups

    - try to add a filter to the customer field using javascript - may not be that straightforward

    - create an additional account look-up field on the case entity, add it to the form, hide default field, and create a business rule/workflow to copy values from that new field to the original field. For the new look-up, you will be able to assign a different look-up view in the properties of the form control

  • Suggested answer
    Joe Gill Profile Picture
    on at

    Hi,

    You can use addPreSearch to filter the lookup results 

    I did a post on it a while back

    http://dynamics365.ie/dynamics-crm-2013-filter-lookup-dialogs/

    hth

    Joe

  • Mohsin Ali Profile Picture
    3,634 on at

    Change your filter in following post and you are good to go:

    dcrm365.blogspot.ae/.../restrict-system-lookup-fields-to-show.html

  • Shambo Profile Picture
    15 on at

    if you want to filter dynamically using code , then you can check this post.

    dynamicsforbusiness.blogspot.com/.../dynamics-crm-native-lookup-with-filtered-view.html

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans