Forum Discussion
Flow - Teams : Rich messages based on Forms data (JSON)?
I have succeeded on getting the flow to work. now i get a card posted in teams.
but the JSON code i do not understand.
This code
{
"type": "TextBlock",
"size": "large",
"text": "**test title**"
}
works just fine.
But how do i add another section that is not set to be "large"?
I have tried to look at other examples but it seem i can not add much code atall in Flow
for example, how do i add a large title and then a subtitle and then some normal text?
I'm not an expert at JSON, but just use that generator I sent you, you can plug stuff in pretty easy. See example here, I just took the Medium one, and duplicated in the section seperated by comma to make a large title as well.
- Oskar KuusSep 06, 2018Iron Contributor
Im doing exaclty as you describe.
I post this in flow
{
"type": "TextBlock",
"size": "large",
"text": "**textblock 1**"
},{
"type": "TextBlock",
"size": "medium",
"text": "**textblock 2**"
}but i get an error and can not save the flow
if i remove one textblock, then i tall works.
It seems i can not have two?
i can not post the above code either in the playground
https://messagecardplayground.azurewebsites.net/
what am i missing to make the code work?