REST Api >> Able to sort by index
Liina Saar
1-22-21
Operating system: macOS
There is an update note >>>

"From Dev 8.5 2020 12 21 b316 ->

Bug fixed/feature added:
REST API >> Cannot sort by Index that is not the sames as a field name

Added "keyname=ActCodeForSale"


If you specify sortfield it works as before

If you specify keyname and sortfield it will use the key "keyname" and apply any "range" argument to "sortfield"
if you specify only keyname then "range" should not be specified and is not available

What worked before:
http://hostname.domain.top/api/1/INVc?sort=Group


What is now added (example)


curl --user SJ:Sample99 -X GET 'http://localhost:5557/api/1/INVc?sortfield=ActCodeForSale&&fields=Code,Name'
you have the example as txt for the above from and the original.

original.txt -> how it looked before
test.txt -> how it looks like with sorting (simplified)"

Is there more specific manual or other documentation about this?
How is working sortfield and what is ActCodeForSale?
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Latest Posts
Carolina Valentino
are the activity set as Hansamanuals said? https://www.hansamanuals.com/main/mailnumber___62526/theconf___231/manuals/version___20250224/langcode___es/hwconvindex.htm?shortcode=HW0301SETTINGS_Order...
17:20 4 Apr 2025
Paul Timms
SendWebRequest3 is a boolean function, so if this returns true and the reply header has an accepted status, you can assume that the data was sent successfully and perform some actions on the record th...
11:12 4 Apr 2025