GlideRecord orderBy is not working

yauheni_karasiu
Tera Expert

GlideRecord method orderBy is not working on sysapproval table if we use dot-walking as an argument in orderBy. See screenshot.

find_real_file.png

18 REPLIES 18

it's not working even if I use sysapproval.request.requested_for.name



Best Regards, Yauheni.
ServiceNow Support.


Ashutosh Munot1
Kilo Patron
Kilo Patron

HI,



I tried same scenario long back ago. Dot walk in order by does not work.



Thank you,


Ashutosh Munot


Hi Ashutosh,



It's strange, because orderBy with dot-walking is working on incident table. See below. Records has been sorted by last name.
find_real_file.png





Thank you.


HI,



Ohk.



So now in your query try



sysapproval.request.number



Thank you,


Ashutosh Munot


Hi,



The same issue. See below.


find_real_file.png



Thank you.