Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Can we change the default Lookup View?

Posted on by

For example if I am routing a case and I do a user look up - Can I change the view that it is defaulting to?  I can't figure out where to do this

*This post is locked for comments

  • Suggested answer
    Seamus Profile Picture
    Seamus 1,575 on at
    RE: Can we change the default Lookup View?

    not sure if (still) relevant but in dynamics365 you can create your new system view (which will act as the source of info for the lookup field). Then you can strip out the guid of the new view (by highlighting it and selecting "actions > email a link" and taking the last id from the querystring - the bit between %7b and %7d

    Then 

    function setNewDefaultView(executionContext) {  //MAKE SURE "Pass execution context as first parameter" is ticked 
    var formContext = executionContext.getFormContext();
    formContext.getControl("NAME OF LOOKUP FIELD GOES HERE").setDefaultView("{GUID OF VIEW GOES HERE}");
    }

  • Suggested answer
    ashlega Profile Picture
    ashlega 34,475 on at
    RE: Can we change the default Lookup View?

    Hi,

     I think "owner" is one of those fields for which we can't pick the lookup view in the control properties.. You might still be able to user prefiltering there:

    www.concurrency.com/.../filter-dynamics-crm-lookup-values-with-javascript

     Or, as Gopalan suggested, you can modify default lookup view (although, that will affect all owner lookup controls)

  • Suggested answer
    Gopalan Bhuvanesh Profile Picture
    Gopalan Bhuvanesh 11,397 on at
    RE: Can we change the default Lookup View?

    Hi

    You can modify the lookup view by going to

    Settings -> Customization->Customize the System

    Select the entity and then select the views

    Select the Lookup view and modify.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans