# Trying to merge two fields

**URL:** <https://community.hubspot.com/t/trying-to-merge-two-fields/112457>\
**Category:** CRM\
**Tags:** professional\
**Created:** [July 19, 2024, 7:51pm UTC](https://community.hubspot.com/t/trying-to-merge-two-fields/112457 "2024-07-19T19:51:36Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![JFair](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@JFair](https://community.hubspot.com/u/JFair)\
**Post date:** [July 19, 2024, 7:51pm UTC](https://community.hubspot.com/t/trying-to-merge-two-fields/112457/1 "2024-07-19T19:51:36Z")

</div>

I am looking to merge two fields we have for contacts, or have one disabled and the data from that one transferred to the other field. We currently have a ‘Company Name’ field and a ‘Primary Company’ field. I would like there to be only one field that states what company a contact is from as it is causing issues when trying to sort our data. Is there a way I can do this without doing it manually?

---

<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:** [July 20, 2024, 5:37am UTC](https://community.hubspot.com/t/trying-to-merge-two-fields/112457/2 "2024-07-20T05:37:19Z")

</div>

Hi @JFair,

Just to confirm, you’re not referring to these two, are you?

![karstenkoehler_0-1721453619741.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/a/a9728a7570328f6d0ca4ae38e52d266f7d0388f5.png)

The first is the association between contact and primary company record. Company name however is a contact property. These two cannot be consolidate. One is documenting what the associated record is called, one is documenting on the contact record what the company name is. And yes, unintuitively, these aren’t linked unless you set up a workflow to copy the value of the associated company name into the contact field.

If you’re not referring to these but actual two contact properties, “Primary company” and “Company name”, then I’d recommend the following:

1. Create a contact-based workflow that copies enrolls contacts when “Company name is unknown and Primary company is known” (if you believe that “Primary company” has better data quality, simply remove “Company name is unknown)”
2. Use the “Copy property value” workflow action to copy the value from “Primary company” into “Company name”
3. On the contact index page, bulk edit all records to clear the “Primary company” field
4. Archive the “Primary company” property (you might have to remove references from forms, lists etc and replace it with “Company name” first)

Best regards!

---

<div class="post-metadata">

**Author:** ![JFair](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@JFair](https://community.hubspot.com/u/JFair)\
**Post date:** [July 23, 2024, 3:42pm UTC](https://community.hubspot.com/t/trying-to-merge-two-fields/112457/3 "2024-07-23T15:42:10Z")

</div>

Hi,

Thanks for your help.

I am wondering if I create this workflow and it messes up some of our existing data if there is a way for me to reverse it. I just want to ensure that if I make this change I am not messing up the existing data we have.

Thanks for your help!

---

<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:** [July 23, 2024, 3:44pm UTC](https://community.hubspot.com/t/trying-to-merge-two-fields/112457/4 "2024-07-23T15:44:55Z")

</div>

@JFair that’s what this part is referring to:

> 1. Create a contact-based workflow that copies enrolls contacts when “Company name is unknown and Primary company is known” (if you believe that “Primary company” has better data quality, simply remove “Company name is unknown)”
> 
> * * *

If you specify “Company is unknown”, only empty fields will be filled. If you remove this, filled fields will be overwritten, too.

---

<div class="post-metadata">

**Author:** ![JFair](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@JFair](https://community.hubspot.com/u/JFair)\
**Post date:** [July 23, 2024, 6:33pm UTC](https://community.hubspot.com/t/trying-to-merge-two-fields/112457/5 "2024-07-23T18:33:38Z")

</div>

Thanks for your help.

I will need the workflow to run the other way where it is filling unknown ‘Primary Company’ fields with the data in the ‘Company Name’ field. How can I run this workflow without it impacting our current data?

Thanks!

---

<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:** [July 23, 2024, 6:38pm UTC](https://community.hubspot.com/t/trying-to-merge-two-fields/112457/6 "2024-07-23T18:38:07Z")

</div>

@JFair you haven’t confirmed whether primary company is the associated record or a custom property, can you please clarify?

---

<div class="post-metadata">

**Author:** ![JFair](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@JFair](https://community.hubspot.com/u/JFair)\
**Post date:** [July 23, 2024, 8:00pm UTC](https://community.hubspot.com/t/trying-to-merge-two-fields/112457/7 "2024-07-23T20:00:39Z")

</div>

It is the associated record I believe.

This field:

 ![Screen Shot 2024-07-23 at 3.59.56 PM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/b/0bf9a4e659f107abc7d03ebbf9397a1d96df6f61.png)

---

<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:** [July 23, 2024, 8:15pm UTC](https://community.hubspot.com/t/trying-to-merge-two-fields/112457/8 "2024-07-23T20:15:32Z")

</div>

@JFair both are default fields in HubSpot, they cannot be merged.

You can however create a contact-based workflow that pulls the value from the contact field in case the company does not have a name.

- Enroll contacts when Company name is known and at least one associated company has Company name is unknown
- use the copy property value action to copy the value from the contact into the company field

Let me know if you need screenshots.

---

<div class="post-metadata">

**Author:** ![JFair](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@JFair](https://community.hubspot.com/u/JFair)\
**Post date:** [July 23, 2024, 8:17pm UTC](https://community.hubspot.com/t/trying-to-merge-two-fields/112457/9 "2024-07-23T20:17:41Z")

</div>

Thanks this helps!

Could you please provide screenshots?

---

<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:** [July 24, 2024, 4:28am UTC](https://community.hubspot.com/t/trying-to-merge-two-fields/112457/10 "2024-07-24T04:28:11Z")

</div>

@JFair there you go, this is what a contact-based workflow would have to look like:

 ![karstenkoehler_0-1721795278617.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/f/cf9f4c17131b855f982af3a50237803f0ad2ed3d.png)

 ![karstenkoehler_1-1721795317584.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/b/6/b6a30379ce936319617d05160341420bbdb4e521.png)
