- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2020 01:04 AM
Hi All,
I have a variable of reference field type with simple condition in it.
I need to sort the results by a column in descending order.
I used variable attributes section where ref_ac_order_by=columnname.
This is doing ascending order sorting.
How to do it descending order sorting by a column name?
I have referred many community links and also got to know , have to write query business rule. But I am not happy with that.
Kindly advise using variable attributes sorting by descending or a better way.
Thanks,
Ram Prakash K R
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2020 04:39 AM
Can you try like this
var encodedquery = "sys_created_on>=2020-12-14^sys_created_on<=2020-12-15 23:59:59";
Thanks,
Narsing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2020 01:26 AM
To my knowledge, it is only achievable with the query business rule... 😕
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2020 02:38 AM
Hi Thom,
If I write the query business rule, it will affect the results wherever that table has been referenced.
Am I correct?
Thanks,
Ram Prakash K R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2020 02:41 AM
Yep, you are correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2020 02:45 AM
Hi,
Sorting the list with ascending or descending is based on User preference
Reference qualifier don't support sorting.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
