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.

can we use two orderBy() in one GlideRcord() ?

sandeep1708
Tera Contributor

I am trying to sort a record with one column and based on that sort it with another Column of a class.

2 ACCEPTED SOLUTIONS

Chaitanya ILCR
Mega Patron

Hi @sandeep1708 

 

Yes you can use multiple orderby methods

 

Here is the detailed servicenow DYK video

https://youtu.be/Smf_88uKuC8?si=8QaF6syk0MsB3gta

 

Please like and accept if helpful 

Regards 

Chaitanya 

View solution in original post

Hi @sandeep1708 ,

 

Glad it helped🙂

here is the blog version of it you can bookmark this for future reference

 

https://www.servicenow.com/community/developer-advocate-blog/did-you-know-nested-sorting/ba-p/308413...

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

View solution in original post

4 REPLIES 4

Chaitanya ILCR
Mega Patron

Hi @sandeep1708 

 

Yes you can use multiple orderby methods

 

Here is the detailed servicenow DYK video

https://youtu.be/Smf_88uKuC8?si=8QaF6syk0MsB3gta

 

Please like and accept if helpful 

Regards 

Chaitanya 

really helpful !

sandeep1708
Tera Contributor

Thanks @Chaitanya ILCR

Hi @sandeep1708 ,

 

Glad it helped🙂

here is the blog version of it you can bookmark this for future reference

 

https://www.servicenow.com/community/developer-advocate-blog/did-you-know-nested-sorting/ba-p/308413...

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya