Sync Salesforce B2B opportunities and contacts to HubSpot

What it does

When a new or updated opportunity is created in Salesforce, this automation checks if the Opportunity Type equals B2B. For B2B opportunities, it searches for related contacts in Salesforce, updates each contact, and syncs them to HubSpot.

Who it's for

Sales operations teams who need Salesforce and HubSpot contacts synchronized when opportunities change.

How teams use this

Keep HubSpot synced with B2B deals

When a B2B opportunity is added or changed in Salesforce, all related contacts automatically sync to HubSpot. The sales team sees the same data in both systems without manual work.

Exclude B2C opportunities from sync

Only B2B opportunities trigger the contact sync to HubSpot, keeping B2C data separate. This prevents unwanted contact records from appearing in HubSpot.

Add account sync alongside contacts

Extend this automation to also search for and sync the related account record to HubSpot whenever a B2B opportunity changes. Include the account update step after the contact sync completes.

Filter contacts by role or status

Modify the contact search to only sync contacts with specific roles or active status to HubSpot. Add a condition to the search so only qualified contacts move to the other system.

How it works

  1. Monitor for new or updated opportunities. Watch Salesforce for when an opportunity is created or modified so this automation can evaluate and sync related data.
  2. Check if opportunity is B2B. Evaluate the Opportunity Type field to determine if the record qualifies as B2B. Only B2B opportunities move forward.
  3. Find related contacts in Salesforce. Search Salesforce for all contacts linked to the B2B opportunity so each one can be updated and synced to HubSpot.
  4. Update each contact in Salesforce. Refresh the contact record in Salesforce for every result from the search before syncing it to the other system.
  5. Create or update contact in HubSpot. Add or refresh the contact record in HubSpot so both systems reflect the same current information.