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

Launch(sms:) Android

Hi,

 

I am trying to use the Launch function to send an SMS with a body; Im having no luck

 

Currently I am using:

Launch("sms:"&Value(Phone.Text)&"?body="&Message.Text)

Its successfully launching the default message app with the phone number however I get no message content.

 

Thanks in advance for any help.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
BradLambie
Level: Powered On

Re: Launch(sms:) Android

Ok so I figured this out, code is very similar to html links.

 

I have two context variables Cust_Var & Cust_Message.

 

Launch("sms:/"&Cust_Var.Phone&"/?body="&Cust_Message)

Seems to work on android 6.x,7.x,8.x with what I have tested so far.

3 REPLIES 3
Community Support Team
Community Support Team

Re: Launch(sms:) Android

Hi @BradLambie ,

 

Do you input text into the Message’s control? I mean if you use one textinput control, do you input text in it?

If yes, there is no error of your formula expreesion.

And do you want to send text message?

If yes, as an alternative solution, could you use this method and to test again?

Reference information:

https://powerusers.microsoft.com/t5/General-Discussion/How-to-send-a-Text-Message/m-p/138983#M47890

 

Best Regards.

Yumia

 

Super User
Super User

Re: Launch(sms:) Android

Any update on this?

 

I have the same problem. It works well on iPhone and not on Android devices. I've tried three different variations on Android, but none works, even though the documentation says one of them should. 

 

Try one: 
Launch("sms:" & txtSMSNummer.Text & "?body=" & txtSMSMeddelande.Text);;
Second go: Launch( "sms:" & txtSMSNummer.Text; "body"; txtSMSMeddelande.Text );;
Third strike: Launch( "sms:" & txtSMSNummer.Text; "?body="; txtSMSMeddelande.Text );;

Neither works as intended. The phone numbers appear, but not the message body. I don't know what to do in order to get it to work, other than having the user type the message in the message app and not in my own, thereby not being able to make message templates in the Powerapp.

For iPhone, the following line works like a charm:

Launch("sms:" & txtSMSNummer.Text & "&body=" & txtSMSMeddelande.Text);;

 

Free hint for Microsoft. @v-yuxima-msft  - can you please get your own things working before recommending a paid service that probably won't work well in Europe?!?!

 

Highlighted
BradLambie
Level: Powered On

Re: Launch(sms:) Android

Ok so I figured this out, code is very similar to html links.

 

I have two context variables Cust_Var & Cust_Message.

 

Launch("sms:/"&Cust_Var.Phone&"/?body="&Cust_Message)

Seems to work on android 6.x,7.x,8.x with what I have tested so far.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

Users Online
Currently online: 219 members 5,317 guests
Please welcome our newest community members: