Questions tagged [orderby]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
3 answers
6k views

REST API: How to get the n most recent items in ascending order

This seems like a very basic question but I can't figure it out. Using pnpjs I want to retrieve the 50 most recently created items, oldest first, newest last. I can only manage to get them in the ...
mplwork's user avatar
  • 152
1 vote
1 answer
126 views

Camel Query OrderBy not working for Decimal Number

I have column name OrderBy of Type Number: I am using below CAML Query: "<View><Query><OrderBy><FieldRef Name='OrderBy' Ascending='TRUE' /> </OrderBy></Query>&...
Akshay Dattatray Nangare's user avatar
0 votes
1 answer
470 views

SharePoint REST orderby on expanded field

I would like to do an orderby on an expanded field when querying a SharePoint list. so for example: $select=File/Name&$expand=File&$orderby=File/Name However, including the orderby on the ...
JakeUT's user avatar
  • 111
0 votes
1 answer
925 views

How to use SharePoint REST API to get newest list item?

I am trying to get the newest item added to a list. Get item by ID works for single item: $.ajax({ url: xurl + "/_api/web/lists('" + xlist + "')/items/getById(123)", type: "GET", headers: { "Accept"...
BDC604's user avatar
  • 403
0 votes
2 answers
67 views

SharePoint 2013 list item in drop-down

Created a page in which I have added a drop-down box . The drop-down box fetches all the ID's of a list . I am fetching the ID by using REST API . In the endpoint url I have added $top = 1000 to ...
Pp25's user avatar
  • 21