We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to set the default sorting in the reference field for all the user in custom scope?

Ankita Kolhe
Tera Contributor

Hi Community,

 

I want to set default sorting in  the reference list based on ASCENDING order of 'ORDER' field:-

I tried with the solution mentioned on below link:-

 

https://www.servicenow.com/community/now-platform-forum/sort-in-ascending-for-reference-field/m-p/10...

 

Also, tried with the below Business rules:-

 

1. Before Insert/Update BR with condition- Name is iogc_choice_definitions.db.order

 

AnkitaKolhe_0-1707732513002.png

2.Before Insert/Update BR with condition-Name is iogc_choice_definitions.db.order.direction

AnkitaKolhe_1-1707732601107.png

 

But neither of the solution is working.

 

Could someone please help me on this?

 

Thanks,

Ankita

 

 

5 REPLIES 5

Dr Atul G- LNG
Tera Patron

Hi @Ankita Kolhe 

 

Might be helpfulhttps://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0725720 

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Hi Atul,

 

Thanks for your reference but it's already configured & still not working.

AnkitaKolhe_0-1707734181430.png

 

 

Hi @Ankita Kolhe 

I tried the same at my end and it is working , may be give a cache.do

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

@Dr Atul G- LNG  Still not working. My requirement is to set default sort order in reference field.

For Example:-

If user opens the reference list then default sort is:-

AnkitaKolhe_0-1707735286781.png

But when user change the sort order by clicking the choice value column, the sort order changes as below:-

AnkitaKolhe_1-1707735402596.png

So when user close the reference pop up window & again opens the reference list, then default sort should be applied(see screenshot 1) instead of the sort did by user(screenshot 2).

 

Thanks,

Ankita