Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Limit number of Items returned by REST API call

$
0
0

Hi all,

I would like to limit the number of items returned by a REST call. I am using REST/jQuery to display a list in another Site Collection, but would only like to grab the top 5 items. I already have the $orderby=ID desc in my REST call. Would I also limit the results pulled via REST. If so, how?

If not, how would I limit the results via jQuery? It seems more efficient if I could limit via REST, so that all the data is not brought over before consumption/presentation.

Thanks,

Kelly


Personal Blog: http://thebitsthatbyte.com


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>