Sync Salesforce account contacts to a snapshot list
Recipe ToolsCRMMarketing
What it does
When someone calls this automation, it searches Salesforce for an account and retrieves all related contacts. The automation builds a complete contact list and returns it so the caller has a full snapshot of who is linked to that account.
Who it's for
Sales operations teams who need a real-time view of all contacts tied to a Salesforce account.
How teams use this
Build account contact lists for outreach
Pull all contacts for an account in one call so sales teams can see every person to reach out to without switching between Salesforce views. The snapshot includes both direct and indirect relationships.
Enrich CRM data in external systems
Call this automation from a third-party app to fetch Salesforce contacts and sync them into your own database or marketing platform. Only the calling system changes, not the automation itself.
Filter contacts by role or status
Add a condition to the query so only contacts with a specific role or status are included in the snapshot. This requires modifying the where clause to filter the results before returning them.
How it works
- Receive the account lookup request. Someone calls this automation with an account identifier to fetch all related contacts in real time.
- Fetch the account details. Search Salesforce for the account record using the provided identifier so the automation knows which account to pull contacts from.
- Gather direct and indirect contacts. Query Salesforce for all contacts linked to that account through both direct associations and account contact relationships in a single batch operation.
- Build the contact snapshot. Combine all contact records into a structured list and format it as a comma-separated variable so the caller receives a clean, usable dataset.
- Return the snapshot to the caller. Send the complete contact list back to the calling system so downstream processes can act on the account and its contacts immediately.