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
ericherich 

Size limit on QueryResults

I'm creating a query to do a bulk update on a set of records. The QueryResult size property is 561, but the records array is only of length 200. Is this a known bug, and is there any workaround for it?

-Eric Hawthorne
vandervander
It's not a bug.  200 is the documented maximum QueryResult size.
SuperfellSuperfell
call queryMore to get the rest of the data.
ericherich
Excellent. Thanks for your help.
zachzach
You can set your batchsize to be up to 2000 records though.

sforceClient.setBatchSize(2000);

If you have more records than that, you need to use queryMore.

Message Edited by zach on 04-25-2006 10:29 AM