Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Send Important Chat message using Send a Microsoft Graph HTTP Request (Graph API)

Like (0) ShareShare
ReportReport
Posted on 7 May 2024 03:15:30 by 63

Hi,

 

Currently sending an urgent/important Teams Chat Message is not available using the standard "Post message in a chat or channel" action (here).

 

My plan is to send a message to a group chat with high importance/urgency.

 

I noticed there is a "Send a Microsoft Graph HTTP request" instead; and according to the documentation, it is possible through Graph API (here).

When I tested it on Graph Explorer, it works as intended:

televisi_0-1715051368766.png

televisi_1-1715051386946.png

 

Now, when I tried to use the "Send a Microsoft Graph HTTP request", for some reason it thrown the following error:

 

{
 "error": {
 "code": 400,
 "message": "URI path is not a valid Graph endpoint, path is neither absolute nor relative or resource/object is not supported for this connector. Resources: teams,me,users Objects: channels,chats,installedApps,messages,pinnedMessages. Uri: https://graph.microsoft.com/v1.0/chats/19xxx6c@thread.v2/messages",
 "source": "flow-apim-msmanaged-na-westus2-01.azure-apim.net",
 "path": "choose[37]\\when[1]",
 "policyId": "",
 "clientRequestId": "xxxxab-xxx"
 }
}

 

 

URI: https://graph.microsoft.com/v1.0/chats/19xxx6c@thread.v2/messages

Method: POST

Body:

 

{
 "importance": "high",
 "body": {
 "content": "Hello World"
 }
}

 

televisi_2-1715051530837.png

 

Could someone please assist me in identifying the problem here?

Thank you in advance!

  • v-yetonggu-msft Profile Picture
    on 07 May 2024 at 03:34:35
    Re: Send Important Chat message using Send a Microsoft Graph HTTP Request (Graph API)

    Hi @televisi ,

    Thank you for sharing and supporting the forum, your reply will help more people who encounter this challenge in the future.

     

    Best Regards,

    Sunshine Gu

  • Verified answer
    televisi Profile Picture
    63 on 07 May 2024 at 03:29:56
    Re: Send Important Chat message using Send a Microsoft Graph HTTP Request (Graph API)

    Ugh... found the resolution right after I posted the above.

    Resolution was provided by Michel Mendes (post)

    I needed to add "me" to the URI.

     

    The correct URI should be: URI: https://graph.microsoft.com/v1.0/me/chats/19xxx6c@thread.v2/messages

     

    Hope this helps everyone else who tried to find an alternative solution.

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

Announcing the Engage with the Community forum!

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Automate - Building Flows

#1
David_MA Profile Picture

David_MA 362 Super User 2025 Season 1

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 300 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 295

Overall leaderboard
Loading started