Sync HubSpot campaigns to Salesforce automatically
Recipe ToolsMarketingCRM
What it does
When the clock triggers every 5 minutes, this automation fetches all campaign IDs from HubSpot and checks a lookup table to find which ones are new. For each new campaign, it retrieves the full campaign data from HubSpot and creates that campaign in Salesforce.
Who it's for
Marketing operations teams who need HubSpot campaigns synced to Salesforce without manual entry.
How teams use this
Keep campaign records in sync across platforms
Run this automation on a schedule so every HubSpot campaign is automatically created in Salesforce. The team no longer needs to manually enter campaigns in both systems.
Prevent duplicate campaigns in Salesforce
The lookup table tracks which campaigns have already synced, so the same campaign is never created twice even if the automation runs multiple times.
Sync only campaigns matching a status filter
Add a condition to check the campaign status in HubSpot before syncing, so only active or approved campaigns are created in Salesforce.
Notify the team when campaigns sync
Include a Teams message at the end of each sync cycle to confirm how many campaigns were created in Salesforce and alert the team to any errors.
How it works
- Check for new campaigns every 5 minutes. The clock triggers this automation on a 5-minute interval to keep campaigns in sync between HubSpot and Salesforce.
- Retrieve all campaign IDs from HubSpot. Fetch a complete list of all campaign IDs currently in HubSpot so the automation can identify which campaigns need to sync.
- Check lookup table for existing campaigns. Search the lookup table for each campaign ID to determine if it has already been synced to Salesforce or is new.
- Get campaign details for new campaigns. For campaigns not found in the lookup table, retrieve the full campaign data from HubSpot including name, description, and other details.
- Create campaign in Salesforce and record it. Create a new campaign record in Salesforce with the data from HubSpot, then add the campaign ID to the lookup table so it is not created again.