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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Search Customization with multiple keywords

(0) ShareShare
ReportReport
Posted on by 76

Hello Techies,

We are on dynamics CRM 2015 on-premises.
During the process of “Contact” creation we are able to add an account using the classic lookup.
My client has a need, when they want to search for accounts they want to search based on more than one keyword.

With the classic approach the client searches for *trainer*
And the result displays

  1. ABC Trainers
  2. Trainers Company

Instead of searching with one keyword, they want to use multiple keywords.
Example: *market* *trainer*

And the expected result is

  1. ABC Trainers
  2. Trainers Company
  3. Leading Marketers
  4. Market Leaders

Is there any way to achieve this using the OOB features?
If custom development needs to be done what is the right approach provided it should be a customization supported by Microsoft.

Awaiting your valuable inputs.

Thanks & regards,
Clement

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Dynamics Objects 365 Profile Picture
    550 on at

    1. Its not possible OOTB

    2. If you want to have some customization, then find out which message is triggered when you search with key. Probably it looks for quick find view, passes the search string and displays you the result.

    I would suggest to find out the message which is triggered when you type the search string,  write a plugin on that message.

  • Verified answer
    Charles Abi Khirs Profile Picture
    3,569 on at

    Hello,

    There is no OOTB method to do this.

    I think other possible options will be unsupported to access the DOM elements.

    What you can do is to add 2 new text fields (if you need your search to be based on those 2 text) and then on change of the text fields, you filter the lookup by using fetchxml and the function addCustomView.

    Hope this helps!

    If found helpful, please mark the answer as verified.

    Charles Abi Khirs.

  • Suggested answer
    prt33k Profile Picture
    6,907 on at

    OOB you cannot do it.

    For custom development, you will need to write a plugin on retrievemultiple of the account. You need to catch the fetchxml in pre-event, split the search string into two or more part and then

    create a OR condition based fetchxml.

    The approach will have a performance hit so check with customer how badly they need it.

    Thanks,

    Pratik

  • Clement-ALBERT Profile Picture
    76 on at

    we ended up doing something similar with a custom field on the form which takes all the search words separated by space.

    And on the "onchange" event used "addPreSearch" with FetchXML to filter the lookup.

  • Charles Abi Khirs Profile Picture
    3,569 on at

    Glad that this helped.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans