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)

Problem with view-sorting on lookup field

(0) ShareShare
ReportReport
Posted on by

Hi everyone

I have a problem regarding a lookup field, where the view on the field isn't getting correctly sorted, regarding to the configured sorting i have on the view.
My lookup field is default set to use "Search Course for look up", and this view and sorting works just fine when I click "Look Up More Records", but the first 10 results does not sort regarding to the sorting of the view - It "Kind of"-does, but not quite.

Sorting-Problem-1.png Sorting-Problem-2.png Sorting-Problem-3.png

Is it even possible to configure some kind of sorting on the first 10 results when searching in a lookup field, or is there just something wrong with the one i am using maybe?

Thanks!

*This post is locked for comments

I have the same question (0)
  • Verified answer
    shennu Profile Picture
    702 on at

    Nothing is wrong. As far as I know this is one of the limitation the lookup control. The lookup preview comes up before the "more records" link is clicked will not honour the configured sorting on the view.  Been like this ever since the beginning... :)

  • Community Member Profile Picture
    on at

    Okay, so there is just no way to control the sorting of the the lookup preview?

  • Verified answer
    Community Member Profile Picture
    on at

    Hi Sine,

    This is a limitation, the lookup Top 10 results are not available for customization nor does it honor the sorting rules within the lookup view. The lookup view sorting is only applied when you choose to lookup more records.

    There is a way that you could manipulate the top ten results through Jscript but it is not supported.

  • Verified answer
    Community Member Profile Picture
    on at

    Please have a look on the link

    crmtipoftheday.com/.../sorting-lookup-field-quick-preview

    Thanks

  • Community Member Profile Picture
    on at

    Thanks Ridhima - I just found it myself after adding "preview" to my search criteria, that worked out better!

  • Community Member Profile Picture
    on at

    Barry, do you have any link for this? :-)

  • Community Member Profile Picture
    on at

    Hi Sine,

    Here are a few examples:

    www.inogic.com/.../apply-custom-filter-on-lookup-field-in-dynamic-crm-using-script

    www.magnetismsolutions.com/.../crm-2013-javascript-lookup-filtering-using-addcustomfilter

    I do want to reiterate that it is unsupported JScript, so while I say that is it possible via Jscript, I would not recommend it.

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at
  • Jim Ashton Profile Picture
    10 on at

    See https://community.dynamics.com/crm/f/117/t/156781 for a Javascript solution that will work.

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