Sync Accounts and Subscriptions between Salesforce queues

Recipe ToolsCRMMarketingDatabase

What it does

When someone calls this automation, it retrieves all Accounts and their Subscription IDs from Salesforce. The data is combined into lists and upserted back to Salesforce in bulk, with a response confirming the sync is complete.

Who it's for

Sales operations teams who need to keep Accounts and Subscriptions synchronized across Salesforce queues.

How teams use this

Keep queue data in sync daily

Run this automation on a schedule to pull all Accounts and Subscriptions from Salesforce, combine them, and push updates back to keep queues current without manual work.

Sync Accounts across multiple Salesforce orgs

Redirect the automation to pull from a second Salesforce instance and upsert to a different set of queues, keeping Accounts aligned across organizations.

Filter Subscriptions by status before sync

Add a condition to only include Subscriptions with an active status in the lists before upserting, so inactive records do not overwrite current queue data.

How it works

  1. Receive call for Accounts. Someone calls this automation in real time to start syncing Accounts and Subscriptions data between Salesforce queues.
  2. Retrieve Subscription IDs from Accounts. Search Salesforce for all Subscription IDs linked to Accounts using a query to identify which records to sync and prepare them for the next step.
  3. Combine and prepare lists for upsert. Accumulate Accounts and Subscriptions into separate lists in Workato Smart List, then merge them with the Subscription IDs retrieved from Salesforce.
  4. Upsert combined data in bulk. Write the merged Accounts and Subscriptions lists back to Salesforce user queues in a single bulk operation to complete the sync.
  5. Return sync confirmation. Send a response confirming that Accounts and Subscriptions have been successfully synced and upserted to Salesforce.