# Undoing a workflow nightmare - How do I create a rock solid Country workflow?

**URL:** <https://community.hubspot.com/t/undoing-a-workflow-nightmare-how-do-i-create-a-rock-solid-country-workflow/32503>\
**Category:** CRM\
**Tags:** how-to\
**Created:** [March 2, 2021, 1:23am UTC](https://community.hubspot.com/t/undoing-a-workflow-nightmare-how-do-i-create-a-rock-solid-country-workflow/32503 "2021-03-02T01:23:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nigel-A](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nigel-a/32/85978_2.png) [@Nigel-A](https://community.hubspot.com/u/Nigel-A)\
**Post date:** [March 2, 2021, 1:23am UTC](https://community.hubspot.com/t/undoing-a-workflow-nightmare-how-do-i-create-a-rock-solid-country-workflow/32503/1 "2021-03-02T01:23:11Z")

</div>

Hello HS Community!

I’m hoping someone might be able to suggest something here that will stop the insanity!

We moved from Salesforce to HubSpot around a year ago. As HubSpot Super-Admin I’m now discovering that our data policies that were in place with Salesforce were VERY questionable indeed (I wasn’t Salesforce Admin), essentially the company used Salesforce as a glorified excel spreadsheet and on top of that didn’t really care what information was in what fields or whether that information was correct or not.

To make things worse, when we transferred to HubSpot the data we pulled across from Salesforce wasn’t cleaned properly. So the nightmare I now face is that we appear to have contacts that are based in Australia (for example) but have Canada listed in the Country property.

As you can imagine this means our Marketing department are not very happy when they filter by Country to market specifically to a country only to find that other countries sprinkle themselves through the data… in short I’m copping a bit of flack for a data hangover that should have been fixed before the data was transferred in the first place.

So… my question is this. Has anyone got a suggestion for a rock-solid workflow that can help sort this mess out? I’m thinking any workflow I put in place would need to have multiple data points to check on before allocating a country just so its right, but, as the saying goes ‘‘ya don’t know what ya don’t know’’ I’m not sure what points those should be.

Any suggestions/actual workflows would be VERY Welcome 🙂

Thanks in Advance!

---

<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 2, 2021, 5:41am UTC](https://community.hubspot.com/t/undoing-a-workflow-nightmare-how-do-i-create-a-rock-solid-country-workflow/32503/2 "2021-03-02T05:41:39Z")

</div>

Hi @Nigel-A,

Let’s start by compiling properties that could help here:

_IP country_ (Contact property)

_Preferred language_ (Contact property)

_Email domain_ (Contact property)

_Recent conversion_ (Contact property)

_Country_ (Company property)

You’d have to evaluate each of these in terms of their expected accuracy and then create a hierarchy. For example. If, for example, you’re working with country-specific landing pages, then the recent form submission or _Recent conversion_ might be the most accurate data point (e.g. a person who has filled out an Italian landing page could be assumed to have _Country/Region_ Italy.) If you’ve previously captured the _Preferred language_ in forms, that might also help.

Once you’ve defined a hierarchy of these properties (= expected accuracy), you could work with HubSpot workflows, e.g. if _IP country_ is known, copy information into _Country/Region_. If _IP country_ is unknown, check _Email domain_ next. If the _Email domain_ contains “.fr”, set _Country/Region_ to France etc.

Depending on the format of the value in the source field, you might have to work with a lot of branches. For example, Preferred language could not be copied 1:1, since it would say Polish instead of Poland. You’d have to set-up if/then branches for each language. (If _Preferred language_ is Polish, set _Country_ to Poland.)

Of course, instead of a workflow, you could also manage all of this in an Excel sheet after exporting all of your contact date, before later re-importing it.

Worst case, if none of the data points are reliable, you’d set all your money on [HubSpot Insights](https://knowledge.hubspot.com/companies/hubspot-insights-on-company-records). HubSpot Insights populates the _Country_ field on the company record based on third party data, web crawling and crowsourcing. You would simply copy this information from the company record into the contact record.

Hope this helps!
