+ Start a Discussion

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,
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.