cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Caroline
Level: Powered On

removing spaces in a phone number and adding text

I have a field which I need to populate with a text to SMS address. i.e. phonenumber@blahblah.co.nz. Is there a formula I can use in the Text control that would pull the phone number from another field (or from the CDS), strip out the spaces, and add the @blahblah.co.nz text? Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: removing spaces in a phone number and adding text

Hi @Caroline,

 

Please use the Substitute function:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-replace-substitute

 

The formula should be something like:

 

Substitute(Label1.Text," ","")

Label1 contains the phone number.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: removing spaces in a phone number and adding text

Hi @Caroline,

 

Please use the Substitute function:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-replace-substitute

 

The formula should be something like:

 

Substitute(Label1.Text," ","")

Label1 contains the phone number.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,247)