Hi everyone, I'm looking for a way to bulk assign country codes (e.g. +61) to phone numbers in HubSpot. We have a large list of contacts with local phone numbers that are missing international dialing codes, and I'd like to clean this up efficiently. Has anyone successfully done this via: A workflow? Import with formulas in Excel/Google Sheets? A custom-coded action or third-party integration? Would love to hear what’s worked for you—or if there’s a HubSpot-native way I’ve missed. Thanks in advance!
If you know which country code belongs to each phone number, then the easiest option should indeed be an export/import.
Export your contacts
Open in Google Sheets or Excel
Create a new column using a formula to prepend the country code: =IF(LEFT(A2,1)="+", A2, "+61" & A2) – This avoids adding the prefix to already-correct numbers.
Save as CSV and import back into HubSpot, mapping the new phone number to the Phone number property.
Doing this with a custom code action is also possible. With the help of gen AI, a snippet could look like this:
If you know which country code belongs to each phone number, then the easiest option should indeed be an export/import.
Export your contacts
Open in Google Sheets or Excel
Create a new column using a formula to prepend the country code: =IF(LEFT(A2,1)="+", A2, "+61" & A2) – This avoids adding the prefix to already-correct numbers.
Save as CSV and import back into HubSpot, mapping the new phone number to the Phone number property.
Doing this with a custom code action is also possible. With the help of gen AI, a snippet could look like this: