Forum Discussion

Oskar Kuus's avatar
Oskar Kuus
Iron Contributor
Sep 06, 2018

Flow - Teams : Rich messages based on Forms data (JSON)?

Hey

 

How can i use microsoft flow to create good looking posts in Microsoft Teams

 

I have read about something called JSON and something called webhooks and creating rich cards in microsoft teams.

How can i careate these cards with predefined information.

 

For example.

I have a form that i now use flow to post a message in teams every time someone fills out the form (microsoft forms).

But i would like to make the message that is posted in teams look better.

With a JSON card....

 

What do i need to do this?

I have googled around. Finding lots of information... but it is a bit to advanced for me... can someone dumb it down?

 
  • So the easy way that I do is load up the App studio editor app in Teams, then inside of that app is a tab for Card Editor, you can easily generate a card look there and copy it, then just insert your dynamic data to get a good looking card.
    • Deleted's avatar
      Deleted
      Well I take that back they changed it, I need to find if it's still available but there was something somewhere that you could build out cards via UI and then copy the JSON, looking :P.
    • Oskar Kuus's avatar
      Oskar Kuus
      Iron Contributor

      Thanks, this look very good.

       

      But where do i paste in the code in flow to make it post in teams

      can i just use the Teams and post message command in flow?

       

      screenshot: http://prntscr.com/krgfe1

       

       

      • Deleted's avatar
        Deleted
        Yes. However, unless they fixed it, unfortunately using FLow to post a message in Teams doesn't trigger notifications / activity bell for users. So if that's a requirement you need to look at creating a web hook, that posts this same JSON and then subscribe to it with connector on the channel you want them to go into, that will give you notifications.

Resources