1

I have REST Query for my OrderDetails List ,And I am unable to sort the rest api based on multiple items .

Can any one please guide me in knowing what's wrong in my below line of code.

http://mysite/_api/web/lists/GetByTitle('OrderDetails')/items?Select=Title&$orderby=Order0,Sub_x0020_Order asc
2
  • 2
    Missing $ before select param Apr 4, 2018 at 15:07
  • Also use eq instead of =
    – lazoDev
    Apr 4, 2018 at 19:46

1 Answer 1

2

You are missing a $ on select, that could be the issue http://mysite/_api/web/lists/GetByTitle('OrderDetails')/items?$select=Title&$orderby=Order0,Sub_x0020_Order asc

2
  • And the select must be in lowercase. Apr 4, 2018 at 16:25
  • 1
    REST URL is case insensitive. Even this will work: "/_api/web/lists/getBYTITLe('OrderDetails')/items?$SeLecT=TiTlE" Apr 4, 2018 at 17:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.