# Workflow - Create Company From Contact + Avoid Duplicates

**URL:** <https://community.hubspot.com/t/workflow-create-company-from-contact-avoid-duplicates/78236>\
**Category:** CRM\
**Tags:** starter\
**Created:** [March 29, 2023, 12:13am UTC](https://community.hubspot.com/t/workflow-create-company-from-contact-avoid-duplicates/78236 "2023-03-29T00:13:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MFranklin0](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@MFranklin0](https://community.hubspot.com/u/MFranklin0)\
**Post date:** [March 29, 2023, 12:13am UTC](https://community.hubspot.com/t/workflow-create-company-from-contact-avoid-duplicates/78236/1 "2023-03-29T00:13:20Z")

</div>

Most of our forms create contacts. I have created a WF that creates a related Company when the association does not exist. How could I modify the workflow so if a company exists by domain, that the company is associated with the contact rather than a new Company being created?

---

<div class="post-metadata">

**Author:** ![BukunmiOdetayo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bukunmiodetayo/32/10280_2.png) [@BukunmiOdetayo](https://community.hubspot.com/u/BukunmiOdetayo)\
**Post date:** [March 29, 2023, 12:35am UTC](https://community.hubspot.com/t/workflow-create-company-from-contact-avoid-duplicates/78236/2 "2023-03-29T00:35:55Z")

</div>

Hi @MFranklin0,

I think this can be addressed within your workflow triggers. Since you have set the triggers to only create a company for a contact whose “associated company” is unknown, there is no way a new company will be created for a contact who has an “associated company” already known.

Or is it possible that a contact has more than one company? If yes, that would be a different scenario.

 ![BukunmiOdetayo_0-1680049682469.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/9/0/90e434bc68f3555e5e1e020b74bfbed4427cd306.png)

To make this work better, you can add “a 2-hour delay” after the trigger to avoid any complications.

However, to address your question “How could I modify the workflow so if a company exists by domain, that the company is associated with the contact rather than a new Company being created?”,

You can use the “if/then branch”. Choose “company property” → search for “company domain name” → “choose is known” and perform any other action you’ll like.

 ![BukunmiOdetayo_1-1680050116540.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/b/4/b47e99b87c2da4c3d4cad8140aa08613aca1d4cb.png)

But I am thinking you may not need this.

---

<div class="post-metadata">

**Author:** ![MFranklin0](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@MFranklin0](https://community.hubspot.com/u/MFranklin0)\
**Post date:** [March 29, 2023, 11:15am UTC](https://community.hubspot.com/t/workflow-create-company-from-contact-avoid-duplicates/78236/3 "2023-03-29T11:15:06Z")

</div>

Matt, thanks for being quick in response. The answer provided by Karsten was more in alignment with what I needed.

Martin

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [March 29, 2023, 4:59am UTC](https://community.hubspot.com/t/workflow-create-company-from-contact-avoid-duplicates/78236/4 "2023-03-29T04:59:24Z")

</div>

Hi @MFranklin0,

The short answer is that this is not possible. Workflows don’t have any out-of-the-box actions that would let you customize associations, e.g. “if company already exists, associate contact to existing company”. This can be achieved but it requires custom code actions in Operations Hub Professional and the help of a developer – or third-party automation solutions to integrate with HubSpot.

Instead, have you looked into the automatic contact / company association? It sounds like what you’re trying to achieve could be solved by this default creation / association feature. [Automatically create and associate companies with contacts](https://knowledge.hubspot.com/crm-setup/automatically-create-and-associate-companies-with-contacts)

Best regards

---

<div class="post-metadata">

**Author:** ![MFranklin0](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@MFranklin0](https://community.hubspot.com/u/MFranklin0)\
**Post date:** [March 29, 2023, 11:10am UTC](https://community.hubspot.com/t/workflow-create-company-from-contact-avoid-duplicates/78236/5 "2023-03-29T11:10:06Z")

</div>

Karsten, I so appreciate your reply. I disabled my workflow and enabled this feature, as I was unaware of this configuration option.

Martin

---

<div class="post-metadata">

**Author:** ![AKim7](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@AKim7](https://community.hubspot.com/u/AKim7)\
**Post date:** [December 14, 2023, 8:40pm UTC](https://community.hubspot.com/t/workflow-create-company-from-contact-avoid-duplicates/78236/6 "2023-12-14T20:40:24Z")

</div>

I want this as well. Mainly for custom company types (making families)
