Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to search multiple values in lookup records screen

(0) ShareShare
ReportReport
Posted on by 186

How can i add multiple values in the search box for lookup records highlighted yellow box. 

E.g. i want to find aa@hotmail.com and ab@hotmail.com 

5556.lookup.JPG

*This post is locked for comments

  • Suggested answer
    Jobengaru Profile Picture
    10 on at
    RE: How to search multiple values in lookup records screen

    What about testing this? For a smaler amount of records it works oob
    Tip #1295: Quickly search for multiple records in advanced find | Power Platform & Dynamics CRM Tip Of The Day


    BR
    Ferdinand

  • Suggested answer
    Vipin J Profile Picture
    1,583 on at
    RE: How to search multiple values in lookup records screen

    How to search in multiple table from a single lookup in Dynamic CRM

    https://vjcity.blogspot.com/2021/07/how-to-search-in-multiple-table-from.html

    https://www.youtube.com/watch?v=64DEBWpw9pM

  • tdav246 Profile Picture
    5 on at
    RE: How to search multiple values in lookup records screen

    This is a great solution! Thanks

  • Suggested answer
    MehranBre Profile Picture
    730 on at
    RE: How to search multiple values in lookup records screen

    hi,

    yes you can see tutorial video (3 minutes) in GitHub:

    github.com/.../releases

  • r4vvm Profile Picture
    186 on at
    RE: How to search multiple values in lookup records screen

    Hi,

    Have you got any videos/screenshots of how it works?

    Be interested to see

  • Suggested answer
    MehranBre Profile Picture
    730 on at
    RE: How to search multiple values in lookup records screen

    Hello,

    I also had search problem in Microsoft Dynamics until I developed my own solution.

    its simple and fast to use!

    You can use it now

    I think this is exactly what you wanted

    GitHub link: github.com/.../Microsoft-Dynamics-365-Advanced-Search

  • Suggested answer
    antc Profile Picture
    2,909 on at
    RE: How to search multiple values in lookup records screen

    Trevors solution will help you out.

    What are you trying to do with this lookup?

    The other option would be to use Visual Studio SSIS with the KingswaySoft connector for CRM. You can then have a SQL table with your list of email addresses and do a lookup against the entity records. The benefit with this is you can then transform the data, add columns etc and update back into Dynamics at the same time.

    Here is a basic example of updating the prices for Products in Dynamics. The lookup contains the link to the SQL table. Usually I will have error outputs and send them to SQL as well however this one was basic and I knew that all records where in both Dynamics and SQL so just had the Union All in case I was wrong

    cap7.JPG

  • TrevorB Profile Picture
    105 on at
    RE: How to search multiple values in lookup records screen

    Hi r4vvm

    It would be great if there was a simple way of doing this but as others have pointed out there doesn’t seem to be any OOB solution. I needed to do something similar on a regular basis so my work around it to use the XRMtoolbox - Fetchbuilder and Excel. It’s a bit of a clunky solution but is a way of getting the desired result. Create your basic view in advanced find manually adding the first two email address and save.  Open that view with the Fetchbuilder and view the fetch. My example is account based so it look like below.

    < fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">

     <entity name="account">

       <attribute name="name" />

       <attribute name="primarycontactid" />

       <attribute name="telephone1" />

       <attribute name="customertypecode" />

       <attribute name="accountid" />

       <order attribute="name" descending="false" />

       <filter type="and">

         <filter type="or">

           <condition attribute="name" operator="like" value="Test1%" />

           <condition attribute="name" operator="like" value="Test2%" />

       </filter>

     </filter>

    </entity>

    </fetch>

    I create a an Excel workbook where I paste my list of data I want to search for in column A.  In column B I copy and paste the first part of the fetch code that searches for the account name being

    <condition attribute="name" operator="like" value="

    Then in column C the last bit of the fetch being: %" />

    In column D using the Concatenate function we bring the code back together

    =concatenate(B1,A1,C1). Highlight B1:D1 and double click he fill handle you now have x lines of code ready to be pasted back into your view using XRMtoolbox fetch builder replacing the text between

    <filter type="or">

           (Paste code between these lines)

       </filter>

    I usually paste out to notepad first to clean up the formatting before pasting into the Fetchbuilder (it will add the cell borders otherwise.

    Save your view and now when you open your view in Dynamics it will return and matched results. I would also save your excel file for future use. My workbook has grown over the last couple of years with worksheets for querying different entities, searching for part and exact matches etc.

    As I mentioned this is a bit clunky but sure beats creating a advanced view manually entering in hundreds of queries and you can then use the template over and over. I would be interested to hear if anyone else has a is  simpler solution.

    BTW: there is a 500 max queries results that can be returned so keep that in mind.

    Hope this makes sense and is of some help.

  • Suggested answer
    Pawar Pravin  Profile Picture
    5,231 on at
    RE: How to search multiple values in lookup records screen

    Hi,

    Unfortunately its not possible in CRM by OOB functionality.

  • Suggested answer
    bac26 Profile Picture
    2,268 on at
    RE: How to search multiple values in lookup records screen

    if there is nothing in common with the email addresses or users, it is not possible without scripting something or using another tool.  This is not a native function.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,865 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,723 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans