#StackBounty: #sharepoint-online #csom #caml-query #large-lists #list-view-paging Difference between camlQuery.AllowIncrementalResults=…

Bounty: 50

My aim is to get all items from a SharePoint List (>5000 items). I have used the standard pagination based approach and it is working fine.

ListItemCollectionPosition position=null;

   CamlQuery caml=new CamlQuery(){ViewXml="<View><RowLimit Scope='RecursiveAll'>5000</RowLimit></View>"};
 caml.ListItemCollectionPosition = position;
   ListItemsCollection items=list.getItems(caml);
   foreach(var item in items){
   //do stuff

However, I recently came across a code sample where it also includes the line:
caml.AllowIncrementalResults=true; in the article:

I would like to know the impact for setting the AllowIncrementalResults=true.
The documentation in msdn is very sparse.

Get this bounty!!!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.