web
You’re offline. This is a read only version of the page.
close
Skip to main content
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)
  • Shambo Profile Picture
    15 on at
    RE: Dynamics CRM 365 Online Lookup Field Filters

    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

  • Mohsin Ali Profile Picture
    3,634 on at
    RE: Dynamics CRM 365 Online Lookup Field Filters

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

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

  • Suggested answer
    Joe Gill Profile Picture
    on at
    RE: Dynamics CRM 365 Online Lookup Field Filters

    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

  • Suggested answer
    ashlega Profile Picture
    34,477 on at
    RE: Dynamics CRM 365 Online Lookup Field Filters

    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

  • Gopalan Bhuvanesh Profile Picture
    11,401 on at
    RE: Dynamics CRM 365 Online Lookup Field Filters

    Hi

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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#3
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans