Sync Salesforce account team members every 5 minutes

Recipe ToolsMarketingWorkatoCRMDeveloper Tool

What it does

Every 5 minutes, this automation searches Salesforce for account team member records and flattens them into a structured format. It then processes each record to identify and route based on the assigned role.

Who it's for

Sales operations teams who need to keep account team member data current and organized in Salesforce.

How teams use this

Keep account team assignments current

Run this automation every 5 minutes so account team member changes sync automatically without manual updates. The team sees real-time role and user assignments.

Route Lead Qualifiers to the right user

Filter account team members by the Lead Qualifier role so only those records are processed and assigned to the correct user in Salesforce.

Monitor account team changes in reports

Log each processed record to the job report so the team can audit which account team members were synced and when the last update ran.

How it works

  1. Check for updates every 5 minutes. The Clock triggers this automation on a 5-minute interval to search for account team member records in Salesforce.
  2. Search Salesforce for account team members. Query Salesforce using SOQL to find all account team member records that match the current criteria and retrieve their details.
  3. Flatten the records list. Execute Python code to transform the account team member records into a flat array structure for easier processing and routing.
  4. Process team members by role. For each flattened record, check if the role is Lead Qualifier and process the account team member based on the assigned user ID.