Wrong Phone Number format in Slack Message

Hello everyone!
I have created a workflow that alerts us in Slack with a message when we receive a new lead. The problem I have is that the phone number that appears in Slack is completely different from the one in Hubspot, generally losing the format and/or the Country Code.
Any idea how to fix this?
Thanks!

Hi @lnpg26,

Thank you for reaching out to the Community!

I did some research and found this forum post on Stack Overflow, where the original poster managed to send phone numbers to Slack in the right format (and make them appear as clickable links) by adding dashes (-) between the numbers. The numbers in HubSpot should look something like this: 604-445-5566.

I saw a user mentioning that including the + before the country code worked for them.

I also wanted to invite a couple of other Community members to this conversation:

Hi @alan_sp, @JTarragó, @RKenner, I believe you have experience integrating apps with Slack, do you have any advice for @lnpg26? Thank you!

Cheers
Mia, Community Team

I’ll check that out. Thanks!

I saw that post. The issue I’m having is that the phone number in the Slack message lacks the Country Code, and when you check the contact in Hubspot, the phone number is complete there. I think it could be a problem with the integration between HS and Slack, and it’s exporting only the phone number without the country code.

I see, thank you for checking the article @lnpg26!

Could you share a screenshots with an example:

  • phone number in your HubSpot account,
  • phone number in the Slack message,
  • as well as a screenshot of your workflow?

If you’ll be sharing examples of real phone numbers, please blur them out so they’re not recognizable. Thank you!

Mia, Community team

Hi Mia, here you have the screenshoots:
SlacK:

Hubspot:

Workflow:

Thank you for the screenshots @lnpg26! The setup looks correct :thinking:

I’ve sent this to our product experts to investigate, I might reach out to you directly if they’ll need more information about your account.

Thanks,
Mia, Community Team

Hi @lnpg26 ,

There are two ways you can do:

  1. If you are using the Enterprise plan then you can use the “Custom code” option.
  2. And if you are using the professional plan then there is no option for managing the phone number format. However there is a workaround, you can follow the below steps:

→ HubSpot provides the number formatting by default. You can simply remove the number formatting from the phone number property you are using.

→ Post that in the Slack message workflow you can simply add the “Country” property so one can identify from which country the lead belongs to.

Let me know if you have any follow-up questions ? I’d be happy to help. :slightly_smiling_face:

If my post was helpful in addressing your query, Support the community by indicating it as the solution :slightly_smiling_face:

Best regards,
Jigar Thakker
jigar@insidea.com

Hey everyone!
I fixed it. There was a mistake in our sign-up forms and it was changing the phone number. It’s working now.
Thanks everyone for the support!

Thanks for updating this thread @lnpg26!

I’m glad you were able to resolve this, I’ll mark your comment as a solution so it’s pinned at the top for Community members who might be experiencing a similar issue.

Cheers
Mia, Community Team