Skip to main content
Question

Extract country code and phone number from form field


R.A.
  • Beginner
  • 9 replies

Hello,

 

I am receiving phone numbers form multiple countries in my forms. I would like to extract the country code from each number and the phone number.

 

How do I do that when the country codes for each country is different ?

 

Thanks,

Rawan

Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

Troy Tessalone
Forum|alt.badge.img+14

Hi @R.A. 

Good question.

Can you post some examples of how the phone number data is formatted?


R.A.
  • Author
  • Beginner
  • 9 replies
  • October 17, 2023

Hello Troy,

 

Phone number examples :

  1. +971 50 0000000
  2. +974 4000 0000
  3. +91 0000-000000

Thanks,

Rawan

 


Troy Tessalone
Forum|alt.badge.img+14

@R.A. 

If there are always spaces after the +XX country code then you could use this Zap action: Formatter > Text > Split

Return each as separate fields.

Then the first item would be the country code and any additional items can be treated as the phone number.