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 / Copilot Studio / Message with Adaptive ...
Copilot Studio
Unanswered

Message with Adaptive card not displaying markdown when using Formula instead of JSON

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

The text block of an Adaptive card supports markdown.  So you can have a formatted list for example in a block with the value:

"Numbered list:\n1. one\n2. Two"

 

However, if you set a variable to that string and use that variable in an adaptive card, it does not display as markdown.  This makes formatting results from API calls or OpenAI sub-par.

 

See attached photos.

 

Categories:
I have the same question (0)
  • BradLawrence Profile Picture
    Microsoft Employee on at

    Figured out a temporary workaround.  In the variable you will have to replace instances of "\n" with an explicit call to Char(10) to force an actual newline into the string.

     

    Substitute(dataToDisplay, "\n", Char(10))

     

    In our case, the data source is sending data back stripped of newlines and no formatting.  So we have to do something a little more intense:

     

    Substitute(Substitute(Substitute(dataToDisplay, "1.", Char(10)  & "1."), "2.", Char(10) & "2."), "3.", Char(10) & "3.")

     

    It's not a scalable / maintainable solution, but gets us some formatting for now.

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 > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 251 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 201 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 93 Moderator

Last 30 days Overall leaderboard