Helpha
Helpha

Reputation: 481

Twilio SMS body doesn't concatenate URL parameters in Azure Logic App

I'm currently building a logic app in Azure to send text messages with Twilio. Everything is working smoothly except that I can't send complex URL in the body.

For exemple if I send this : https://example.com?id=26 I will recieve the the correct string, but the parameter is not concatenated correctly with the domain in the clickable link. enter image description here

So when I click the link in the text message it only opens the https://example.com . The message I'm sending is built like this :

 "Send_Text_Message_(SMS)": {
            "inputs": {
                "body": {
                    "body": "@{triggerBody()?['message']}@{triggerBody()?['url']}@{body('Insert_row')?['Id']}",
                    "from": "xxx-xxx-xxxx",
                    "to": "@triggerBody()?['phone']"
                },

message: Hello please click this link
url :https://example.com?id=
id: 26
so the final body would be like : [message][url][id]

I've tried sending a simple string like https://example.com?id=8 to see if it was the "complex" body concatenation that was failing, but it's still not working.

Can anyone help :) ?

Upvotes: 2

Views: 542

Answers (1)

Helpha
Helpha

Reputation: 481

For anyone that would be stuck with this here's how I tricked android :

I added a / after the .com so now the url I'm sending is :

https://example.com/?id=36

enter image description here

Upvotes: 8

Related Questions