How is possible to change a telephone number from this format +393201234567 to this one 3201234567?

How is possible to change a telephone number from this format +393201234567 to this one 3201234567?

Hi @Lorenzo1

Have a look at the substring function it will let you remove the first 4 characters

https://www.make.com/en/help/functions/string-functions

1 Like

Thanks

I’ve written in this way and it doesn’t work

Do I do anything wrong?

It seems you have one argument too many.

The substring function only uses 3 arguments:

  • Text (your whatsapp_number)
  • start point
  • end point

but it seems you gave 4.

This is how I’d approach it, start at position 2 (in this example, the “+” sign is auto-removed by Make, so it might be position 3 for your), and continue until the end of the string. So end argument becomes length() of the string. This adds flexibility in case the length varies.

image

1 Like

Hi. Trys this:

{{substring(+393201234567; 2; 14)}}

If you need additional support, please don’t hesitate to reach out.

Cheers
//HFBR

I think you want to start with 3

{{substring(<phone>; 3; length(<phone>)-1}}

2 Likes

i you just want to remove the first 4 characters you just need to use
{{substring(2.test; 4)}} replace 2.test with your whatsapp variable

image

2 Likes

I’ve solved. I had written uncorrectly the substring formula. Thanks to all of you for your precious support

2 Likes

Or you use the “Phone” module :smiley:

2 Likes