function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
iqbaliqbal 

setting the batchsize in queryMore call

hi all,
 
I am using the querMore call to retrieve data from SFDC.I need to set the batch size as 250.
I am using the following lines for setting the batchsize before querying.
 
-QueryOptions qo = new _QueryOptions();
qo.setBatchsize(new Integer(250));
 
Then my query follows.
 
But even though i have set the batch size as 250,my query result is holding 2000 records.
Please suggest a solution for the same.
 
 
Thanks in advance,
VN
SuperfellSuperfell
You created and setup a queryOptions header, but didn't set it on your stub. exactly how you do this will depend on which soap tools you're using. There's examples for Axis in the API docs.