GlideRecord orderBy is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2017 12:58 AM
GlideRecord method orderBy is not working on sysapproval table if we use dot-walking as an argument in orderBy. See screenshot.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2017 01:15 AM
Hi Yauheni,
There is no field in approval table named request, try modifying it with sysapproval
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2017 01:30 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2017 01:18 AM
Hi Yauheni,
what if you try
gr.orderByDesc('sysapproval.request')
Thanks
Frank
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2017 01:32 AM
Hi Frank,
The same issue with gr.orderByDesc, it's not working.
Thank you, Yauheni.