Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Change searchable field on lookup control

Posted on by Microsoft Employee

Hi, everybody

I'm trying to change the searchable field for a lookup control. The scenario is this:

I have a custom entity with a 1:N relation to 'contact' entity. The form of the custom entity has a lookup control to find the 'contact' related to. The 'contact' entity has a new field that represents a unique ID number (used at my country). When i go to find the contact in the custom entity form, i want the lookup control search by the new field (contact unique ID) and not only by the primary field (fullname).

Is there a way to do this using JavaScript, a custom view or even a C# plugin?

Thanks in advance.

*This post is locked for comments

  • Nuno Profile Picture
    Nuno 2,005 on at
    RE: Change searchable field on lookup control

    Take a look at: community.dynamics.com/.../crm-2013-modify-the-columns-shown-in-the-inline-lookup.aspx

  • Verified answer
    Nuno Profile Picture
    Nuno 2,005 on at
    RE: Change searchable field on lookup control

    Hi Hugo,

    You can do this with a custom view. Create a custom view with only the field you want to display (contact unique ID) and then in the field properties for that lookup, in Additional Properties set the default view for your custom view.

  • Suggested answer
    ScottDurow Profile Picture
    ScottDurow 50,177 on at
    RE: Change searchable field on lookup control

    Hi,

    Yes you can do this simply by editing the find fields on the 'Quick Find' view for the contact entity. See www.microsoft.com/.../edit-the-quick-find-view.aspx

    Hope this helps,

    Scott

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans