Forum Discussion
Oskar Kuus
Sep 06, 2018Iron Contributor
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 te...
Anonymous
Sep 06, 2018So 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.
- Oskar KuusSep 06, 2018Iron 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
- AnonymousSep 06, 2018Yes. 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.
- AnonymousSep 06, 2018Another good resource for this if the flow still isn't posting notifications. Kind of touches on that, it's what I used when I was messing with this, was pretty easy to create a Webhook to use.
https://davidlozzi.com/2018/03/01/posting-to-teams-incoming-webhook-verses-teams-post-message-in-flow/
- AnonymousSep 06, 2018Well 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.
- AnonymousSep 06, 2018
In the meantime here is a good reference for the cards however with examples you can use and just plug that into Flow and add in the dynamic fields and your good to go: https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference