Sync daily survey results to Salesforce Accounts

Recipe ToolsMarketingWorkatoCRMDeveloper Tool

What it does

When the scheduled time arrives each morning, this automation searches Salesforce for survey responses from the previous day. It updates Account records with the results and skips weekends so responses are processed on the next business day.

Who it's for

Sales operations teams who need to sync survey data into Salesforce Accounts without manual entry.

How teams use this

Sync survey scores to Accounts daily

Run the process each morning to pull Healthscore results from the previous day and update Account records automatically. The team sees fresh data without opening a separate survey tool.

Skip weekends to batch responses

The automation runs Monday through Friday only, so Friday and Saturday responses are processed together on Monday morning. This reduces noise and groups feedback by business week.

Add custom fields to Account updates

Modify the Python code to include additional survey fields or calculated metrics into Salesforce, such as sentiment or engagement flags. Only the transformation step changes.

Route low scores to a queue

Add a condition after the update step to check for Accounts with scores below a threshold and assign them to a follow-up queue. This surfaces at-risk accounts for immediate attention.

How it works

  1. Run every morning except weekends. Trigger at 3:00 AM daily, but skip Saturday and Sunday so survey responses from the previous day are processed on the next business day.
  2. Fetch yesterday's survey responses. Search Salesforce for all Healthscore records created in the past 24 hours using a query to grab responses from the previous day.
  3. Format the batch updates. Execute Python code to transform survey data into the structure needed for Salesforce Account updates and prepare records for batch processing.
  4. Update Accounts with survey results. Write the formatted data back to Salesforce Accounts in batches so all records reflect the latest survey scores and Healthscore values.