SalesForce Campaigns in Workflow Not Syncing

I’ve built a workflow in that fires off different actions based on which dates people have chosen to attend a specific event. I would like to add the people who are enrolled to different SalesForce campaigns based on which dates they pick, so have executed this through various branches and all looks to be set up okay. However, the contacts aren’t actually syncing through to the campaign in SalesForce when I’ve been testing it. The campaign is “Active” in SalesForce which is how I’ve pulled it through, and I followed the usual process/instruction for pulling it through into the campaign. Just can’t figure out why it’s not actually syncing? Is the sync not instant and maybe I’m being impatient?

All thoughts and help appreciated!

Hi @KSteptoe,

Have you checked the workflow actions log for the contacts where this is happening? Understand your workflow details page

Typically the issue is that the workflow is trying to set the campaign before the workflow is synced to Salesforce. In that case, you’d have to delay until the record is synced.

Best regards!

Hi @karstenkoehler
Thanks for helping out - I think you’re right, it’s saying there is an error because there isn’t a corresponding contact in SalesForce, however I can see the contact in SalesForce so not sure why it’s logging as an error for this reason. I can see online it says it takes 10-15 minutes for changes to sync from HubSpot to SalesForce, so I have added in a delay that means the campaign is not updated until 25 mins after someone fills in a form, that way if a new contact is created, it should have time to sync over before I then try and sync them to the campaign.

Will keep you posted as to if this works! If you have any other thoughts or tips please do let me know!

Hi @karstenkoehler - just a heads up this fixed my problem! Thanks very much for your help!

Adding to this since we’ve hit a variation of the same issue across several client portals.

The fixed delay works well when Leads stay Leads, but a few of our clients changed their sales process so BDRs convert Leads to Contacts within about 15 minutes of a form submission. With a general delay, the workflow was setting the Salesforce campaign on the Lead record after it had already been converted to a Contact, so campaign attribution was getting lost.

What’s worked reliably for us is to wait for the sync instead of waiting a set amount of time:

  1. If/then branch: check whether Salesforce Contact ID or Salesforce Lead ID is known.
  2. If yes: go straight to the Set Salesforce Campaign action.
  3. If no: add a Delay until an event happens that triggers when Salesforce Contact ID or Salesforce Lead ID has a property value change, then set the Salesforce campaign.

This way the campaign gets set as soon as the record exists in Salesforce, which is usually before a BDR converts it, and Salesforce carries the campaign membership over to the Contact on conversion. I’d also recommend setting a maximum wait time on the delay (with a fallback, like an internal notification) for records that never sync because of sync rules or inclusion lists.

Hope this helps anyone running into the same thing.