Hi,
I am new to Power Automate. I am writing a simple flow , which says when a new message is posted in Teams, send it to Whatsapp. The good news is that it works. I used a custom connector from Twilio and it worked fine.
My challenge is (for which i couldn't find a solution).
I use a trigger called - When a new chat message is added to trigger the flow. I then use a HTTP Connector to snd message to whatsapp. The challenge I am facing is that I am not able to extract message from Teams chat and post it on Whatsapp . it works good with a hard coded message. The issue is in the body tag (&Body=).
Any suggestions on how could i extract the message from teams ?
This is my configuration of HTTP connector.
"type": "Http",
"inputs": {
"uri": "https://api.twilio.com/2010-04-01/Accounts/xxxxx/Messages.json",
"method": "POST",
"headers": {
"Content-Type": "application/x-www-form-urlencoded"
},
"body": "From=@{encodeUriComponent('whatsapp:+yyyyy')}&To=@{encodeUriComponent('whatsapp:+xxxxx')}&Body=@{encodeUriComponent(triggerOutputs()?['body']['value'])}",
"authentication": {
"type": "Basic",
"username": "ACb8f3c13576260e9859ae0f6cb33eeebc",
"password": "5a3f5fc58eea11f5c8320aa1ab3a829d"
}
},
"runAfter": {},
"runtimeConfiguration": {
"contentTransfer": {
"transferMode": "Chunked"
}
}
}