Is there a way to set a 'post a message in a chat or channel' action is an 'Urgent' message?
I can get the message to flow into the chat that I want but I want it to specifically be marked as Urgent.
Would love this to be possible!
Is there a way to set a 'post a message in a chat or channel' action is an 'Urgent' message?
I can get the message to flow into the chat that I want but I want it to specifically be marked as Urgent.
Would love this to be possible!
Hi @MichalPro,
Your URI looks valid. It is probably failing because this resource type is not supported in the type of action (Invoke an HTTP) you are using. Try a different type of action like HTTP or one of the Send an HTTP request actions.
Thank you for your help. I was looking to find a way to send urgent messagfe to conversation, not the channel but thanks to your advise I figured out how to create URI.
my URI is: https://graph.microsoft.com/v1.0/chats/19:1a06bee3cf6945c6b70089a239c76277@thread.v2/messages
Unfortunately, this feature is not working for me and I dont know why my URI si not valid.
Hi @MichalPro,
That URI field should contain the whole graph uri. So, it would need to be:
https://graph.microsoft.com/v1.0/teams/{team-id}/channels/{channel-id}/messages
Replace (team-id} your specific team id and {channel-id} by the channel id you tried to use in your earlier screenshot (19:1a06 etc.)
Thank you for interesting 🙂
I know how to find Channel/Conversation ID (i dont need to find it dynamically) but using it in URI field in Sending HTTP Request isn't working for me. Automate needs URI of the channel/conversation not the ID.
Hi @MichalPro,
In my setup I was testing with one specific channel and one specific conversation. In that setup I stored the Channel Id in a initialize variable action of type string.
I retrieved the channel id in the get link to channel options. That link should also contain a Channel Id, which should look something like below:
19:1172bde8739742b69419eb0980fcde33@thread.tacv2
However, do you want to retrieve this dynamically or are you looking for a id of one specific channel? Also depends a bit on your flow setup. Can you share a screenshot of what you currently have?
Hi @Expiscornovus
Thank you for your work :). Your post is very helpful but i dont have an idea how your getting your channel/conversation URI in your flow.
Could you share this?
Hi @Emmaburt26,
I totally forgot about this new sweet non-premium action called, Send an HTTP request to Office 365 Groups. It is still in preview, however it can do the same job:
https://docs.microsoft.com/en-us/connectors/office365groups/#send-an-http-request
Thanks for the reply, I don't have premium 😫
Good to know there is a work around though
Hi @Emmaburt26,
Unfortunately the importance property is set as a default to normal in that action.
A workaround could be to use an HTTP request and POST the message via the Graph API, https://docs.microsoft.com/en-us/graph/api/chatmessage-post?view=graph-rest-1.0&tabs=http. This way you can set the importance property yourself.
Below is an example with the Invoke an HTTP request action.
This requires a premium action.
{
"subject": "This is very urgent",
"importance": "urgent",
"body": {
"content": "This is a Flow test, this is urgent",
"contentType": "html"
},
}
Btw, also make sure that you configure the Base Resource URL and Azure AD Resource URI correctly within the connection
WarrenBelz
146,702
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,015
Most Valuable Professional