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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM Field lookup preview sorting

(0) ShareShare
ReportReport
Posted on by

Hi All,

I want to know is there any way to sort the field lookup quick preview in Dynamics 365, either using a Jscript or any out of the box steps to follow to achieve this.

Any suggestions are appreciated.

Thanks,

Vinod

*This post is locked for comments

I have the same question (0)
  • gdas Profile Picture
    50,091 Moderator on at
    RE: CRM Field lookup preview sorting

    Hi Vinod ,

    You can do this using Javascript while creation/save of lookup record .

  • Community Member Profile Picture
    on at
    RE: CRM Field lookup preview sorting

    Yeah I meant prefix in my last reply, I'm sure that'll work. Thanks anyway for the response.

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at
    RE: CRM Field lookup preview sorting

    Hi Vinod,

    Unfortunately this is not supported by MS dynamics , this is OOB behavior so you can not change this behavior.

    As an alternate you can try to  concatenate lookup name field value with prefix the number field  so that it can be sort with number . like below  , I am not sure , you can try.

    10 - Name of the record  

    20 - Name of the record  

    30 - Name of the record  

  • Community Member Profile Picture
    on at
    RE: CRM Field lookup preview sorting

    Hi Goutam,

    The lookup quick previews on any entity will be sorted in alpha-numeric manner which is a default feature, I want to add a numbered field to that lookup's entity and have it sorted but the quick preview is not picking that up, only look up view is being sorted.

    lookup-preview.PNG

    These 10 records preview that we get while we click on look-up that needs to be sorted I wanted to know if there's any way to do that

    Apart from adding a number as a suffix to every record's name field.

  • gdas Profile Picture
    50,091 Moderator on at
    RE: CRM Field lookup preview sorting

    Hello Vinod,

    What kind of sorting you need when preview  ,could you please specify little bit details   ?  

    You can add filter condition to retrieve certain data based on some condition as per your requirement , this is supported method which Rawish already shared.

    However by default it should be sort based on characters which you type in the field .

    Hope this helps.

  • Suggested answer
    Rawish Kumar Profile Picture
    13,758 on at
    RE: CRM Field lookup preview sorting

    Hi Vinod,

    Even if you have applied sorting on the quick lookup view of the this entity - the sorting doesnt applies on this first 10 records of the lookup.

    so when you click on the more records it opens the view - there you will see the  correct sorting. Its a limitation.

    you an use some scripting logic , but i doubt is would be a supported method :

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

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

    mark my suggestion as verified if helpful.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#2
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans