web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Unable to extract message details from a Teams Trigger

(0) ShareShare
ReportReport
Posted on by
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"
    }
  }
}
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 597 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 373 Moderator

#3
chiaraalina Profile Picture

chiaraalina 262

Last 30 days Overall leaderboard