Route large Salesforce batches to SQL Server in smaller loads
CRMMarketingRecipe ToolsDeveloper ToolDatabase
What it does
When Salesforce sends a batch of 2000 accounts, this automation splits them into smaller batches of 200. Each smaller batch is then inserted into the SQL Server users table so the database processes the data without performance strain.
Who it's for
Data and analytics teams who need to load large Salesforce account batches into SQL Server without overwhelming the database.
How teams use this
Load Salesforce accounts into the data warehouse
Split large account batches from Salesforce and insert them into SQL Server so the database stays responsive during bulk loads. The team avoids timeout errors and keeps data in sync.
Adjust batch size for different databases
Change the batch size from 200 to a different number based on SQL Server capacity or network limits. Only the code step needs to be updated to match your infrastructure.
Add error handling for failed inserts
Include a condition to check if each batch inserted successfully, and log or retry any batches that fail. This ensures no accounts are lost during the transfer.
How it works
- Pick up new accounts from Salesforce. Salesforce sends a batch of 2000 accounts to this automation whenever new accounts are created or updated.
- Split the batch into smaller groups. Workato Custom Code divides the 2000 accounts into smaller batches of 200 so SQL Server can process them without performance issues.
- Insert each batch into SQL Server. For each smaller batch, this automation inserts the rows into the dbo.users table in SQL Server, repeating until all batches are loaded.