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:
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"
}
}
Could someone please assist me in identifying the problem here?
Thank you in advance!
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
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.
stampcoin
87
Michael E. Gernaey
70
Super User 2025 Season 1
David_MA
48
Super User 2025 Season 1