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

vinothkumar
Tera Guru

Hi Yauheni,



There is no field in approval table named request, try modifying it with sysapproval


Hi Vinoth,



There is field "sysapproval", which references to sc_req_item record, which has request field.
I'm ordering by "sysapproval.request".



Thank you.


Frank1975
Kilo Guru

Hi Yauheni,


what if you try



gr.orderByDesc('sysapproval.request')



Thanks


Frank


Hi Frank,



The same issue with gr.orderByDesc, it's not working.



Thank you, Yauheni.