# Salesforce integration - syncing subscription opt-in status

**URL:** <https://community.hubspot.com/t/salesforce-integration-syncing-subscription-opt-in-status/18219>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [January 20, 2020, 4:05pm UTC](https://community.hubspot.com/t/salesforce-integration-syncing-subscription-opt-in-status/18219 "2020-01-20T16:05:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KamiKrastanova](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kamikrastanova/32/79091_2.png) [@KamiKrastanova](https://community.hubspot.com/u/KamiKrastanova)\
**Post date:** [January 20, 2020, 4:05pm UTC](https://community.hubspot.com/t/salesforce-integration-syncing-subscription-opt-in-status/18219/1 "2020-01-20T16:05:27Z")

</div>

Hello,

I have a question regarding the synchronization of the Subscription properties.

In my setup, custom checkbox fields on Lead & Contact in Salesforce are synchronized with the respective subscription properties. The sync is two-way (the only option available).

Unsubscribing (via a preference page) causes the properties’ value to become ‘Yes’, which syncs succesfully to Salesforce (checkboxes become ‘true’). However, the reverse does not work as intended - subscribing again clears the property and it becomes blank, which does NOT sync over to Salesforce as ‘false’ (possibly because SF checkboxes cannot have a blank value.

Are there any workarounds/solutions? We cannot sync marketing preferences now, which is a total deal breaker.

---

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [January 21, 2020, 2:24am UTC](https://community.hubspot.com/t/salesforce-integration-syncing-subscription-opt-in-status/18219/2 "2020-01-21T02:24:37Z")

</div>

Hey @KamiKrastanova,

When looking to sync custom email type from HubSpot to Salesforce, as there isn’t a way to sync or set blank value in Saleforce, the best option to sync this property is for the property in Salesforce to be changed to a dropdown selection with values ‘Yes’ and ‘No’.

On my end, I have tried setting this up on my own portal and I’m able to see that the value successfully synced to Salesforce when I opt out and opt back in contact on a particular email type.

Do try it out and let me know if it works for you! Let me know if there’s any further questions on this.
