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

Issues with large datasets

im working on integrating salesforce with my companies crm software.  i have created a button in the salesforce campaign tab that alllows a user to upload all the members of the campaign to my companies database. My issues arise when a user tries to upload a campaign that is bigger than the 10000 row limit for soql queries.  im looking for some advice on how i would be able to get more than 10000 rows of data from salesforce.

Best Answer chosen by Admin (Salesforce Developers) 

All Answers


i was initially thinking that the Batch API was used only to send data to salesforce and would not work in the opposite direction. Was i wrong in assuming that.

Soul AgesSoul Ages

Yes, you were. The Batch API is for processing large amount of information in nice way. What it allows is to go through large amount of data (millions of records) using relatively small batches ( maybe 1000 records). Each batch runs in it's own context, with it's own governor limits. You can do whatever you like in a batchable process.


Read the link and you'll see examples on how to use it.