Question

Extract country code and phone number from form field

  • 16 October 2023
  • 3 replies
  • 145 views

Userlevel 1

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


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

Userlevel 7
Badge +14

Hi @R.A. 

Good question.

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

Userlevel 1

Hello Troy,

 

Phone number examples :

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

Thanks,

Rawan

 

Userlevel 7
Badge +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.