web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to send adaptive c...
Power Automate
Unanswered

How to send adaptive card containing rich text and/or all types of characters?

(0) ShareShare
ReportReport
Posted on by 1,097

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:

Oskarkuus_0-1649949395160.png

 

 

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:

Oskarkuus_1-1649949614065.png


Comes from a rich texteditor from powerapps

So how to push that into a adaptive card in Teams?

Categories:
I have the same question (0)
  • SynapticSci Profile Picture
    on at

    I am encountering this same issue, did anyone resolve it? 

  • Oskarkuus Profile Picture
    1,097 on at

    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. 

  • JPS1995 Profile Picture
    2 on at

    Hi Oskarkuss - do you know where I can find the 'characters that cause an error'? I would like to also do this with my flow, but have not been able to find this. Thanks 🙂 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard