Forum Discussion

Oskar Kuus's avatar
Oskar Kuus
Iron Contributor
Apr 10, 2018
Solved

Rich text in Flow when posting automatic messages in Microsoft Teams?

How can i setup so my Microsoft Flows that post messages in Teams in MS Teams are better looking.

I want to edit the text with the rich text editor in Flow so i get bold text, important flag, bullets etc.

 

How can i do this in Flow?

  • I just tested formatting in a Flow message using HTML as well as markdown (per this article https://support.office.com/en-ie/article/use-markdown-formatting-in-teams-4d10bd65-55e2-4b2d-a1f3-2bebdcd2c772) and both seem to work.

6 Replies

  • HeyZiko's avatar
    HeyZiko
    Copper Contributor

    I just tested formatting in a Flow message using HTML as well as markdown (per this article https://support.office.com/en-ie/article/use-markdown-formatting-in-teams-4d10bd65-55e2-4b2d-a1f3-2bebdcd2c772) and both seem to work.

  • Anonymous's avatar
    Anonymous
    I can't find anything, even in json reference guide that lets you set "importance" on the messages.
  • Anonymous's avatar
    Anonymous
    The field is html from what I recall, so you can use html to markup the text to add formatting.
    • Oskar Kuus's avatar
      Oskar Kuus
      Iron Contributor
      Thanks, ill try.
      What is the html for making a teams post as important?
      • Anonymous's avatar
        Anonymous

        You can't AFAIK using the Teams actions in flow. The only way I know to do that would be setup a incoming webhook connector on a channel, then use the webhook connectors to send the formatted cards which might be able to access that flag. I'll see if i can find an article about it, but here is a card formatting tool that you can use in webhooks to make your messages look better.

        https://messagecardplayground.azurewebsites.net/

        The other good thing about webhooks is they actually setup notifications, with the built in flow now new notifications happen the messages just kind of show up in a channel and is a bad experience IMO.

         

        here is a pretty good article going over webhooks with Teams. https://powerusers.microsoft.com/t5/Microsoft-Flow-Community-Blog/Posting-to-Teams-with-Flow-Incoming-Webhook-verses-Teams-Post/ba-p/97095

         

Resources