# HubSpot \<\> Salesforce Integration - Salesforce Assignment Rules doesn't work

**URL:** <https://community.hubspot.com/t/hubspot-salesforce-integration-salesforce-assignment-rules-doesnt-work/109029>\
**Category:** Tips, Tricks & Best Practices\
**Tags:** professional\
**Created:** [June 10, 2024, 12:41pm UTC](https://community.hubspot.com/t/hubspot-salesforce-integration-salesforce-assignment-rules-doesnt-work/109029 "2024-06-10T12:41:18Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![OBetzalel](https://avatars.discourse-cdn.com/v4/letter/o/f19dbf/32.png) [@OBetzalel](https://community.hubspot.com/u/OBetzalel)\
**Post date:** [June 10, 2024, 12:41pm UTC](https://community.hubspot.com/t/hubspot-salesforce-integration-salesforce-assignment-rules-doesnt-work/109029/1 "2024-06-10T12:41:18Z")

</div>

Hi,

We are using the HubSpot \<\> Salesforce Integration, and the when a contact is created in HubSpot and passed to Salesforce, the lead assignment rules doesn’t work to change to the right owner according to the Country field that is passed to salesforce.

How we can solve this? thanks.

---

<div class="post-metadata">

**Author:** ![PamCotton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/pamcotton/32/47916_2.png) [@PamCotton](https://community.hubspot.com/u/PamCotton)\
**Post date:** [June 10, 2024, 9:48pm UTC](https://community.hubspot.com/t/hubspot-salesforce-integration-salesforce-assignment-rules-doesnt-work/109029/2 "2024-06-10T21:48:10Z")

</div>

Hey @OBetzalel, thank you for posting in our Community!

It sounds like there might be an issue with how the Country field data is being processed between HubSpot and Salesforce. I recommend checking the integration settings to ensure the field mappings are correct. Additionally, review the lead assignment rules in Salesforce to confirm they are set up accurately.

To our top experts, **@matthew-aire** and **@evaldas** any recommendations for @OBetzalel matter?

Thank you,

Pam

---

<div class="post-metadata">

**Author:** ![matthew-aire](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/matthew-aire/32/12187_2.png) [@matthew-aire](https://community.hubspot.com/u/matthew-aire)\
**Post date:** [June 11, 2024, 8:23am UTC](https://community.hubspot.com/t/hubspot-salesforce-integration-salesforce-assignment-rules-doesnt-work/109029/3 "2024-06-11T08:23:21Z")

</div>

Hi @OBetzalel

Could you add some more information please on how Owners are being assigned. Are contacts being assigned a Contact Owner in HubSpot first, and then when they are synced to Salesforce the Lead Owner in SF is being assigned to someone else, and not following the criteria you have created in SF?

Thanks,

| [![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/e/0ed987bea2248c18646a10c8d0b79ef2a13740c7.png)](https://www.linkedin.com/in/matthewaire/) | **Matt Aire**  
HubSpot Freelancer | Founder @ pocketpros  
[Let's chat HubSpot - book a meeting](https://matthewaire.com/meetings/matthew-aire) |

👌 If my reply was useful and helped answer your question, **please mark it as a solution to help the community!**

---

<div class="post-metadata">

**Author:** ![OBetzalel](https://avatars.discourse-cdn.com/v4/letter/o/f19dbf/32.png) [@OBetzalel](https://community.hubspot.com/u/OBetzalel)\
**Post date:** [June 13, 2024, 7:01am UTC](https://community.hubspot.com/t/hubspot-salesforce-integration-salesforce-assignment-rules-doesnt-work/109029/4 "2024-06-13T07:01:31Z")

</div>

@matthew-aire @PamCotton Hi,

In HubSpot the contact is assigned to an owner. And when it sync to Salesforce we want the assignment rule to run and **change** the owner according to the Country we defined in the assignment rule (The owners are not the same in the systems), the country seems to be passed right.

---

<div class="post-metadata">

**Author:** ![matthew-aire](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/matthew-aire/32/12187_2.png) [@matthew-aire](https://community.hubspot.com/u/matthew-aire)\
**Post date:** [June 13, 2024, 7:16am UTC](https://community.hubspot.com/t/hubspot-salesforce-integration-salesforce-assignment-rules-doesnt-work/109029/5 "2024-06-13T07:16:49Z")

</div>

Hi @OBetzalel

Thanks for the update. Is it essential that the Contact is assigned an Owner in HubSpot first? If not, you could leave the Contact Owner blank, and when they’re synced to Salesforce with the mapped country field, the Salesforce Contact Owner criteria should then assign the correct owner which would then reflect as the Contact Owner in HubSpot.

Can you also ensure all Users in HubSpot are set up in Salesforce too?

Let me know your thoughts on the above.

Thanks,

| [![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/e/0ed987bea2248c18646a10c8d0b79ef2a13740c7.png)](https://www.linkedin.com/in/matthewaire/) | **Matt Aire**  
HubSpot Freelancer | Founder @ pocketpros  
[Let's chat HubSpot - book a meeting](https://matthewaire.com/meetings/matthew-aire) |

👌 If my reply was useful and helped answer your question, **please mark it as a solution to help the community!**

---

<div class="post-metadata">

**Author:** ![OBetzalel](https://avatars.discourse-cdn.com/v4/letter/o/f19dbf/32.png) [@OBetzalel](https://community.hubspot.com/u/OBetzalel)\
**Post date:** [June 13, 2024, 7:22am UTC](https://community.hubspot.com/t/hubspot-salesforce-integration-salesforce-assignment-rules-doesnt-work/109029/6 "2024-06-13T07:22:56Z")

</div>

@matthew-aire We will check and let you know how it goes, by the way - we use a formula field in the assignment rule in salesforce, but it seems it is legit as salesforce created this recommendation to create - [https://help.salesforce.com/s/articleView?id=sf.essentials\_round\_robin\_lead\_assignment.htm&type=5](https://help.salesforce.com/s/articleView?id=sf.essentials_round_robin_lead_assignment.htm&type=5)

Thanks!!

---

<div class="post-metadata">

**Author:** ![matthew-aire](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/matthew-aire/32/12187_2.png) [@matthew-aire](https://community.hubspot.com/u/matthew-aire)\
**Post date:** [June 13, 2024, 7:26am UTC](https://community.hubspot.com/t/hubspot-salesforce-integration-salesforce-assignment-rules-doesnt-work/109029/7 "2024-06-13T07:26:04Z")

</div>

Thanks for the update. It might be that the formula can’t override the owner field or something is missing in its code.

I would try what I suggested above by leaving the Contact Owner blank in HubSpot initially. See if SF can then assign a Contact Owner based on the formula and then hopefully when SF syncs back to HS it will assign the correct Contact Owner in HubSpot.

---

<div class="post-metadata">

**Author:** ![OBetzalel](https://avatars.discourse-cdn.com/v4/letter/o/f19dbf/32.png) [@OBetzalel](https://community.hubspot.com/u/OBetzalel)\
**Post date:** [June 13, 2024, 7:36am UTC](https://community.hubspot.com/t/hubspot-salesforce-integration-salesforce-assignment-rules-doesnt-work/109029/8 "2024-06-13T07:36:13Z")

</div>

@matthew-aire Alright, we will try and I’ll get back to you with it (as we don’t have access to the HubSpot system of this customer).

Thanks!

---

<div class="post-metadata">

**Author:** ![matthew-aire](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/matthew-aire/32/12187_2.png) [@matthew-aire](https://community.hubspot.com/u/matthew-aire)\
**Post date:** [June 13, 2024, 7:42am UTC](https://community.hubspot.com/t/hubspot-salesforce-integration-salesforce-assignment-rules-doesnt-work/109029/9 "2024-06-13T07:42:00Z")

</div>

No problem, and make sure the Users that are being assigned in SF are also Users in HS. This could be causing an issue also.
