Sync rule to store only oldest value

Status: Idea Submitted

When setting up the mapping between HubSpot and Salesforce we are missing an option to overwrite existing values in both directions only if they are set after the initial value.

Our use case is:

We collect leads in both systems, HubSpot and Salesforce, and want to track the very first source of the lead if it has been created in both systems independently.

No sync rule allows us to do so since it will always update to the most recent value.

@thombü You can use a Salesforce Flow to ensure the first value doesn’t change once it’s set and then change the sync rule for Always prefer Salesforce unless blank. That way, if Salesforce is the original source, it won’t overwrite the field. And, if the Salesforce field is blank, HubSpot will update it the first time, and it won’t change.

@LaurenRyan , thanks for the idea.

But as I see it, it would still not prevent Salesforce from overwriting older values in HubSpot. But at least the other way (HubSpot → Salesforce) would be covered by this.

@thombü we were having the same issue so we created a solution that works for us. I wanted to share in case it sparks any inspiration!

We aren’t using HS’s standard field of Lead Source, so we developed custom fields:

  • Lead Source - New: populates in a LARGE HS work based off things like original source, ODD1, and ODD2, etc. This doesn’t sync with SF to keep the data intact.
  • Lead Source Detail: populates in a LARGE HS work based off things like original source, ODD1, and ODD2, etc. This doesn’t sync with SF to keep the data intact.
  • SF Integration Lead Source: populates on the SF side IF a new SF lead/contact is created.
  • SF Integration Lead Source Detail: populates on the SF side IF a new SF lead/contact is created.
  • Then we have LOCK fields for all the above so it will retain the original 1st source

Then we created these fields and this is what syncs with SF to not interfere with

Lead Source - New (SF Sync) - this syncs with SF

Lead Source Detail (SF Sync) - - this syncs with SF

When a new lead is created in HS it goes through this WF and sets all but the SF Integration fields. Then if by change this HS Record doesn’t qualify to sync to HS, and a sales rep creates a SF lead it will connect back with HS to see one exists and will keep the original source set in HS.

This solution is very complex and was a beast to manage but it’s working for us!