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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Post Message to Teams ...
Power Automate
Unanswered

Post Message to Teams Group Chat from Outlook email

(0) ShareShare
ReportReport
Posted on by 10

Hi , 

 

I wanted to find a way to post my Outlook messages to Teams group chat whenever I've a key word in the subject title. The content seems to go through ok but Images are coming through as error 

 

Any help to resolve this is much appreciated !

 

Thanks!

Categories:
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at
  • Zi1 Profile Picture
    10 on at

    Dont believe so as I'm using the generic Power Automate Template with code below 

    {
        "inputs": {
            "host": {
                "connection": {
                    "name": "@parameters('$connections')['shared_teams']['connectionId']"
                }
            },
            "method": "post",
            "body": {
                "recipient": "19:208bf1e381c7497cac2067cff94dabc3@thread.v2",
                "messageBody": "<p>@{triggerBody()?['subject']}<br>\n<br>\n@{triggerBody()?['body']}<br>\n</p>"
            },
            "path": "/beta/teams/conversation/message/poster/@{encodeURIComponent('User')}/location/@{encodeURIComponent('Group chat')}",
            "authentication": "@parameters('$authentication')"
        },
        "metadata": {
            "flowSystemMetadata": {
                "swaggerOperationId": "PostMessageToConversation"
            },
            "operationMetadataId": "e06a91b9-48cb-46de-8aa1-d18ca68eaeb9"
        }
    }
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    Not sure if it is a limitation of the standard connector. Try the GRAPH API

  • Zi1 Profile Picture
    10 on at

    How do I leverage the Graph API to sync up the Power Automate such that when I receive a targeted Outlook email , it automatically posts the content to TEAMS Group Chat ?

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    SudeepGhatakNZ_0-1668630080346.png

     

  • Zi1 Profile Picture
    10 on at

    Thanks Sudeep , where can i get the Graph Endpoint from for a particular Microsoft Teams Group chat ?

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    In the link I provided above.

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    HTTP request

    Sending message in a channel

    HTTPCopy
     
    POST /teams/{team-id}/channels/{channel-id}/messages

    Sending replies in a channel

    HTTPCopy
     
    POST /teams/{team-id}/channels/{channel-id}/messages/{message-id}/replies

    Sending message in a chat

    HTTPCopy
     
    POST /chats/{chat-id}/messages

  • Zi1 Profile Picture
    10 on at

    Dont think that solves it , as it requires a designated Teams Channel, rather than posting it as a new post in a TEAMS Group Chat

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    Wouldn't your Team Group chat have a Chat id?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 355

#2
11manish Profile Picture

11manish 336 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard