Sync thousands of Salesforce records without bulk API
Recipe ToolsCRMMarketing
What it does
When a scheduled interval runs, this automation queries Salesforce in chunks of 200 records to retrieve thousands of records efficiently. It batches the results into a list so someone can access all matching Opportunities immediately after the queries finish.
Who it's for
Data and analytics teams who need to retrieve large Salesforce datasets quickly for testing or integration work.
Apps used
How teams use this
Test integrations without bulk API delays
Query thousands of Salesforce records in minutes instead of waiting for bulk operations to complete. This is ideal for testing workflows before deploying to production.
Retrieve large datasets on schedule
Fetch and batch Salesforce records faster by chunking queries into 200-record increments. The automation runs on schedule so data stays current without manual queries.
Add custom filtering to queries
Modify the Salesforce query to filter by specific fields or conditions so only relevant records are retrieved and batched. This reduces processing time and focuses results on what the team needs.
Route batched records to another system
Send the completed list of Opportunities to a data warehouse, analytics tool, or CRM after all chunks are queried and batched. Include field mapping so records are formatted for the destination system.
How it works
- Run on a scheduled interval. Clock triggers this automation every 5 minutes or on a custom schedule so Salesforce records are queried at regular intervals without manual intervention.
- Get the total record count. Query Salesforce with a custom query to find the total number of records that match the criteria so the automation knows how many chunks to retrieve.
- Loop through and query each chunk. Repeat a Salesforce query for every 200-record chunk, adjusting the offset each time so all matching records are retrieved without hitting bulk API limits or delays.
- Batch results into a list. Add each record from the Salesforce query results to a list so someone can access all retrieved Opportunities immediately after the loops finish.