Hi
How can i send adaptive card to microsoft teams using the teams connector in flow for adaptive cards with flow-bot.
Cards that contain invalid characters and/or rich text.
looking at https://adaptivecards.io/designer/ i can see that there are a textblock for rich text.
but i dont know how to use it.
i have a powerapp and i want to send rich text to teams in adaptive cards.
i get error message running my flow´s complaining about invalid characters.
Microsoft.Azure.ProcessSimple.Data.Entities.Exceptions.ProcessSimpleDataException: Den angivna adaptiva kortbegäran för Teams-flowbot saknas eller är ogiltig. Spårnings-ID:t är {0}. ---> Newtonsoft.Json.JsonReaderException: After parsing a value an unexpected character was encountered: K. Path 'body[1].inlines[0].text', line 15, position 32.
My card just for test looks like this:
{
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"size": "Medium",
"weight": "Bolder",
"text": "Exempel"
},
{
"type": "RichTextBlock",
"inlines": [
{
"type": "TextRun",
"text": "@{triggerBody()['Postadaptivecardinachatorchannel_AdaptiveCard_2']}"
}
]
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.4"
}
This is the connector:
Any solution to getting the message to print?
This is the message when running the flow:
{
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"size": "Medium",
"weight": "Bolder",
"text": "Exempel"
},
{
"type": "RichTextBlock",
"inlines": [
{
"type": "TextRun",
"text": "<p><strong>kk</strong></p><p> </p><p><u><strong>kk</strong></u></p><p> </p><p><a href="http://www.google.se"><u><strong>lll</strong></u></a></p>"
}
]
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.4"
}
This text:
Comes from a rich texteditor from powerapps
So how to push that into a adaptive card in Teams?
I am encountering this same issue, did anyone resolve it?
Sadly not. I had to do a compose action to clean the text from characters that cause an error. Id love to see the ability to post the same things as any user can post in teams.
User | Count |
---|---|
27 | |
16 | |
15 | |
12 | |
11 |
User | Count |
---|---|
43 | |
30 | |
28 | |
24 | |
23 |