Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Output from 'when a new channel message is added' seems not to be passed to the next action

(1) ShareShare
ReportReport
Posted on by 4
Hello guys.
 
I'm using Power Automate to set up flow to address the following:
  • Read a message from a teams channel (trigger).
  • The message is converted to plain text (html to text).
  • Some other actions.
The problem I'm facing is the message body / message body content seems not to be passed to the second action: html to text.
This seems to be really easy but, honestly, I feel totally stupid not being able to progress with this process.
 
 
Based on this basic flow, when I test it, this is what I get:
 
Input and output raw data for 'channel messages is added':
 
{
    "host": {
        "connectionReferenceName": "shared_teams",
        "operationId": "OnNewChannelMessage"
    },
    "parameters": {
        "groupId": "882e8de4-0cbc-xxxx-xxxx-45f6fab2cca3",
        "channelId": "19:1a38dd1095e840d08b4bf4f63exxxxx@thread.tacv2"
    }
}
The message arrives to Teams and the flow is triggered:
{
    "headers": {
        "Transfer-Encoding": "chunked",
        "Location": "https:/
...
...
    "body": {
        "etag": "1728460532475",
        "messageType": "message",
        "createdDateTime": "2024-10-09T07:55:32.475Z",
...
...
        "body": {
            "contentType": "html",
            "content": "<attachment id=\"e0194c903d2543b98538fcbba6xxxxxx\"></attachment>"
        },
        "channelIdentity": {
            "teamId": "882e8de4-0cbc-xxxx-xxxx-45f6fab2cca3",
            "channelId": "19:1a38dd1095e840d08b4bf4f63e71deaf@thread.tacv2"
        },
        "attachments": [
            {
                "id": "e0194c903d2543b98538fcbba6xxxxxx",
                "contentType": "application/vnd.microsoft.card.adaptive",
                "content": "{\r\n  \"type\": \"AdaptiveCard\",\r\n  \"body\": [\r\n    {\r\n      \"text\": \"\\nOrganization:
...
...
 
And this is what I see from the Raw input and output data, 'html to text':
{
    "host": {
        "connectionReferenceName": "shared_conversionservice",
        "operationId": "HtmlToText"
    },
    "parameters": {
        "Content": "<p class=\"editor-paragraph\">{\"contentType\":\"html\",\"content\":\"<attachment id=\\\"a55d51fd14514161ab2363b813xxxxxx\\\"></attachment>\"}</p>"
    }
}
 
Everything seems to be OK (status == 200) no other information:
 
{
    "statusCode": 200,
    "headers": {
        "Cache-Control": "no-store, no-cache",
        "Pragma": "no-cache",
        "Transfer-Encoding": "chunked",
        "Vary": "Accept-Encoding",
        "Set-Cookie": "ARRAffinity=8484fb3d90c3d36e5b1e48ba2fb9c171f2967b2e02d3fc0cf6ad37cb692fb867;Path=/;HttpOnly;Secure;Domain=conversionservice-we.azconn-we-003.p.azurewebsites.net,ARRAffinitySameSite=8484fb3d90c3d36e5b1e48ba2fb9c171f2967b2e02d3fc0cf6ad37cb692fb867;Path=/;HttpOnly;SameSite=None;Secure;Domain=conversionservice-we.azconn-we-003.p.azurewebsites.net",
        "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
        "x-ms-request-id": "d17d372b-09b3-xxxx-xxxx-2cc403afb086",
        "X-Content-Type-Options": "nosniff",
        "X-Frame-Options": "DENY",
        "x-ms-tenant-id": "ecaa386b-c8df-xxxx-xxxx-740cbdb5ba55",
        "Timing-Allow-Origin": "*",
        "x-ms-apihub-cached-response": "false",
        "x-ms-apihub-obo": "false",
        "Date": "Thu, 10 Oct 2024 12:45:01 GMT",
        "Content-Type": "text/html; charset=utf-8",
        "Content-Length": "35",
        "Expires": "-1"
    },
    "body": "{\"contentType\":\"html\",\"content\":\"\"}"
}
 
 
Would like to understand why this basic flow is not transferring the information from main action to 'html_to_text'.
 
Appreciate your help.
 
Regards
  • FL-02091104-0 Profile Picture
    4 on at
    Output from 'when a new channel message is added' seems not to be passed to the next action
    Hello.
     
    Anyone around ?
     
    Regards
    Javier

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >