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
bdensmorebdensmore 

Return all rows in Select Statement

I'm using the Web Service API to query a salesforce account. I'm trying to grab all records from the Contact Object but it always returns 2000, even though there are almost 6,000 records in there.

I've looked at some of the other posts and they recommended adding some criteria to the query which I did but I always get 2000 records.

Is there a way to bypass this limit?

Thanks,
Ben
SuperfellSuperfell
see the queryMore call, you can get all 6000 rows (or even all 6,000,000 rows) just not in one round trip.