I am reading Sharepoint list data (> 20,000 entries) using the Odata RESTful service, as described in detail here -http: //blogs.msdn.com/b/ericwhite/archive/2010/12/09/getting-started-using- alternate OData-rest-request-a-list.aspx-SharePoint
I can read the data, but I get only the first 1000 records. I also verified that View List View was set to 5000 on the sharepoint server. Please inform.
Update:
@Turker: Your answer is in place! Many thanks. I was able to get the first 2000 entries in the first iteration. However, I get the same records in every iteration of the while loop. My code is as follows:
...initial code...
int skipCount =0;
while (((QueryOperationResponse)query).GetContinuation() != null)
{
query = dc.Execute<CATrackingItem>(
((QueryOperationResponse)query).GetContinuation().NextLinkUri
);
caList.AddRange(query.ToList());
var results = from d in caList.Skip(skipCount)
select new
{
Actionable = Actionable,
}; Created = d.Created,
foreach (var res in results)
{
structListColumns.Actionable = res.Actionable;
structListColumns.Created= res.Created;
}
skipCount = caList.Count;
}
source
share