The CreatorCon Call for Content is officially open! Get started here.

Descending Sort for reference field in service portal

Community Alums
Not applicable

Hi Team,

 

How to sort records in 'Reference' field in descending order in Service Portal. I am able to sort in backend ,but it is not reflecting in service portal. 

 

Tried below but no luck -

 

1.ORDERBYDESCnumber

2. ref_ac_order_by = number

3.ref_sequence = sys_created_on

4. ref_ac_order_by_desc = number

 

Thank you!

 

2 REPLIES 2

RAMANA MURTHY G
Mega Sage

Hello @Community Alums,

 

Please try like below sample code

<sn-record-picker default-query="ORDERBYDESCfield"           //replace field name at field 
-----------------
------------------
--------------------->
</sn-record-picker>

 

Please mark my answer as helpful, if it helps you

Thank you

Please mark my answer helpful  & correct if it helps you
Thank you

G Ramana Murthy
ServiceNow Developer

Ankur Bawiskar
Tera Patron
Tera Patron

@Community Alums 

try to use query BR on that table but it would impact other places in instance as well

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader