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
    Missing $ before select param – Gautam Sheth Apr 4 '18 at 15:07
  • Also use eq instead of = – lazoDev Apr 4 '18 at 19:46
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

  • And the select must be in lowercase. – Mike Smith - MCT - MVP Apr 4 '18 at 16:25
  • 1
    REST URL is case insensitive. Even this will work: "/_api/web/lists/getBYTITLe('OrderDetails')/items?$SeLecT=TiTlE" – Denis Molodtsov Apr 4 '18 at 17:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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