Skip to main content

Notifications

Community site session details

Community site session details

Session Id : XGQEHfGoFCjvfy4iFy/Riw
Power Automate - Building Flows
Unanswered

Sending Urgent Message in Teams Chat

Like (0) ShareShare
ReportReport
Posted on 14 Sep 2021 10:12:31 by

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!

  • Expiscornovus Profile Picture
    31,648 Most Valuable Professional on 25 Aug 2022 at 12:30:34
    Re: Sending Urgent Message in Teams Chat

    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.

  • MichalPro Profile Picture
    6 on 25 Aug 2022 at 10:55:31
    Re: Sending Urgent Message in Teams Chat

    Hi @Expiscornovus 

     

    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.

     

    Screenshot_3.png

  • Expiscornovus Profile Picture
    31,648 Most Valuable Professional on 20 Aug 2022 at 08:56:11
    Re: Sending Urgent Message in Teams Chat

    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.)

  • MichalPro Profile Picture
    6 on 18 Aug 2022 at 16:39:24
    Re: Sending Urgent Message in Teams Chat

    Hi @Expiscornovus 

    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.

     

    MichalPro_0-1660843468922.png

     

     

    MichalPro_1-1660843489783.png

     

  • Expiscornovus Profile Picture
    31,648 Most Valuable Professional on 15 Aug 2022 at 09:33:26
    Re: Sending Urgent Message in Teams Chat

    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

     

    getlinktochannel.png

     

    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?

  • MichalPro Profile Picture
    6 on 09 Aug 2022 at 16:30:13
    Re: Sending Urgent Message in Teams Chat

    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?

  • Expiscornovus Profile Picture
    31,648 Most Valuable Professional on 14 Sep 2021 at 16:01:00
    Re: Sending Urgent Message in Teams Chat

    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

     

    nopremiumneeded.png

  • Community Power Platform Member Profile Picture
    on 14 Sep 2021 at 14:42:39
    Re: Sending Urgent Message in Teams Chat

    Thanks for the reply, I don't have premium 😫

     

    Good to know there is a work around though

  • Expiscornovus Profile Picture
    31,648 Most Valuable Professional on 14 Sep 2021 at 10:57:15
    Re: Sending Urgent Message in Teams Chat

    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.

     

    importance_urgent02.png

    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"
     },
    }

     

     

    importance_urgent.png

     

     

    Btw, also make sure that you configure the Base Resource URL and Azure AD Resource URI correctly within the connection

     

    invokehttprequestazuread_baseresourceuri.png

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard