include orderby in query business rule
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2018 11:23 PM
Hi All,
I have been trying to include orderBy in my query business rule and somehow I'm unable to make it work.
Can someone guide if we can use orderBy in the query business rules?
Code Snippet:
var qc = current.addQuery('active','true').orderBy('state');
Thanks,
Srikanth Varma
Labels:
- Labels:
-
Scripting and Coding
10 REPLIES 10
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
15 hours ago
It works perfectly when adding the ^ORDERBY or ^ORDERBYDESC to an encoded query as well.
For example: current.addEncodedQuery('active=true^ORDERBYnumber');
