w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to make rest call return all results, or the the total count (Sharepoint REST API)

If i understand correctly i don't think you need to iterate the entire query to get the count. Simply call .Count() on your query. I am not exactly sure from your example which part you are trying to get the count for. However, as an example just add this line after you create your searchResults query:

var count = searchResults.Count();




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.