Sync Salesforce accounts from scheduled onboarding batch

Recipe ToolsMarketingWorkatoCRM

What it does

When the clock triggers every 5 minutes, this automation searches a lookup table for pending accounts. It creates them in Salesforce in batches and updates the lookup table with each new Salesforce ID.

Who it's for

Sales operations teams who need to onboard accounts from a queue into Salesforce without manual entry.

How teams use this

Onboard accounts without manual Salesforce entry

Load pending accounts into the lookup table and let this automation create them in Salesforce on schedule. The team never has to open Salesforce to add them one by one.

Route failed accounts to a review queue

When accounts fail to create, the Error Handling function sends them to a separate lookup table. Filter by error status so the team can review and fix them before the next batch run.

Extend onboarding to other systems

Add another step after the Salesforce batch to create the same accounts in a second system. Include the newly saved Salesforce IDs as a reference for the second system.

Adjust batch size for peak onboarding

Change the lookup table query to filter by priority or date so high-value accounts are created first, or reduce batch size during peak periods to avoid timeouts.

How it works

  1. Run every 5 minutes. The automation starts on a 5-minute schedule to check for pending accounts in the lookup table.
  2. Get all pending accounts. Search the OnboardingProcessLookUpTable for all records waiting to be created in Salesforce.
  3. Create accounts in batches. Create all pending accounts in Salesforce at once, using the lookup table ID to track each one.
  4. Update lookup table with Salesforce IDs. For each successful account created, call the UpdateSfid function to save the new Salesforce ID back to the lookup table.
  5. Handle errors if any occur. If accounts failed to create, call the Error Handling function to log the issue and notify the team.