# Creating a task as a workflow

**URL:** <https://community.hubspot.com/t/creating-a-task-as-a-workflow/30468>\
**Category:** Tips, Tricks & Best Practices\
**Tags:** companies, workflows, contacts\
**Created:** [January 20, 2021, 11:47am UTC](https://community.hubspot.com/t/creating-a-task-as-a-workflow/30468 "2021-01-20T11:47:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MM-SPONSORs](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mm-sponsors/32/95715_2.png) [@MM-SPONSORs](https://community.hubspot.com/u/MM-SPONSORs)\
**Post date:** [January 20, 2021, 11:47am UTC](https://community.hubspot.com/t/creating-a-task-as-a-workflow/30468/1 "2021-01-20T11:47:34Z")

</div>

Hi all,

Case: Contact changes the company/employer, update of adress data and associated company neccesary.

I want to create a workflow that creates a task if the associated company (or its adress data, e.g. city, post code of the company) of a contact is unequal to the adress data of the contact itself. For us the contact adress data usually is the adress data of the associated company. I know there seems no automatic mapping being possible in HubSpot if an associated company has changed, isn´t it?

The task is to renew or map the contact adress data with the new associated company adress data.

Is that possible and how can I trigger and build that workflow? Thanks a lot for your replies!

---

<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:** [January 20, 2021, 11:58am UTC](https://community.hubspot.com/t/creating-a-task-as-a-workflow/30468/2 "2021-01-20T11:58:49Z")

</div>

Hi @MM-SPONSORs,

It’s not possible to compare two records in HubSpot workflows but luckily, you might not even need that here.

The goal is to always update contact properties with the latest value of company properties, correct? In that case, a company-based workflow would actually be a solution.

You’d enroll companies based on, for example, “_Street address_ is known”. You’d also allow re-enrollment of copmany records when _Street address_ is known. The first and only step of this workflow would be the copy action from _Street address_ on the company record to _Street address_ on the contact record.

Whenever the company _Street address_ value changes, HubSpot should re-enroll the company. (I tested this before in other scenarios but I’d recommend testing this in your own database to make sure it works before fully trusting it.)

Keep in mind that this would not update contacts associated with a company that were created after the company was enrolled and after the value was copied. For this probably small number of contacts, you could create another workflow, enrolling companies when “At least one associated Contact has _Street address_ is unknown”. This one doesn’t allow for re-enrollment but it would probably cover most of the outliers.

Hope this helps!
