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

Variable value show based on order

Ramjee
Tera Expert

I have a requirement to display records from a custom table in a specific sequence (based on defined order) instead of the default alphabetical order in a type of lookup select box variable.

Please help with the appropriate approach to achieve this.

 

Thank you 

Ramji

6 REPLIES 6

Tanushree Maiti
Giga Sage

Hi @Ramjee 

 

If you have lookup select box called 'u_var', then use the following reference qualifier: "ORDERBYu_var" in the type specification.

 

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

Hi @Tanushree Maiti , 

Thank you for the quick response. I tried the suggested approach, but it is not working on my end.

Hi 

U can try  Attributes: order_by=uvar or try advanced reference qualifier 

Hi @Ramjee 

I double checked , For us with Custom table , its working fine. Make sure you have selected your look up  value field properly .

Screenshot 2026-02-27 120958.jpg

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: