- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2017 04:56 PM
When calling the inbound REST API (for tables), I'm a big fan of using the ORDERBY clause within the sysparm_query string. Is it possible to use ORDERBY with two fields, rather than just one. For example, first I want to sort by field1, then within those results, I'd like to sort by field2. This assumes that within field1, there are duplicates.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2017 05:21 PM
Hi Chad,
I tested on my OOB instance and it seems multiple ORDERBY or ORDERBYDESC can be used together.
You can have a try by below REST API, it should be working fine.
Cheers
Henry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2017 05:21 PM
Hi Chad,
I tested on my OOB instance and it seems multiple ORDERBY or ORDERBYDESC can be used together.
You can have a try by below REST API, it should be working fine.
Cheers
Henry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2017 03:33 PM
Wow, you're totally right. Works great for me, thanks !