Question

I'm creating an iOS app that queries a Sharepoint Webservice with GetListItems. I'm able to retrieve all of the records, but there are a lot of records > 4000. Is there a way I can retrieve 50 at a time?

I'm using SOAP for this by the way.

Was it helpful?

Solution

Assuming you're passing a CAML query to the webservice, you ca use a rowlimit tag

<Query>
   <!-- your current query here -->
   <RowLimit>100</RowLimit>
</Query>

EDIT

To retrieve a subset of values you could do something like this

<Query>
   <Where>
     <And>
       <Geq>
         <FieldRef Name='ID'/>
         <Value Type='Counter'>0</Value>
       </Geq>
       <Lt>
         <FieldRef Name='ID'/>
         <Value Type='Counter'>100</Value>
       </Lt>
     </And>
   </Where>
</Query>

I haven't tested this, but it should work. Of course, you're going to want to change the values in your code to retrieve the particular subset.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top