Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to sort reference field values

Ken83
Mega Guru

Hello Community,

I'm looking for a way to sort the values of a reference field. Simple enough but there is not an option on the reference qualifier and I have already tried the global user preference. I am viewing this reference field on the Service Portal and it does not honor that global sort user preference. Anyone found a solution to this yet? 

3 REPLIES 3

sachin_namjoshi
Kilo Patron
Kilo Patron

check below solution

 

https://community.servicenow.com/community?id=community_question&sys_id=b8090fa1db5cdbc01dcaf3231f961946

 

Regards,

Sachin

verdakosnett
Tera Expert

In attributes for the field: ref_sequence=field_name;

simonezini
Giga Sage

Hi @Ken83 

just add to the attribute field of the catalog variable this line: ref_ac_order_by=FIELD .

 

Regards

Simone