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 / Formating code in Powe...
Power Automate
Unanswered

Formating code in Power Automate Teams chat

(1) ShareShare
ReportReport
Posted on by

Hello, 

Im running a flow that makes queries to a power BI dataset. That query is subject to change based on other variables in the flow; this works fine.

I want to make an error handling stream that if the query fails it sends me the query via a chat in teams so that i can see what went wrong and fix it. 

 

At the moment all I get with this HTML code: 

(normally the Dax query gets passed in as a string variable)

 

 

 

<pre class="language-plaintext">
<code> 
// DAX query 
--- --- 
</code> 
</pre>

 

 

 

is this: 

gusmadvol_0-1721126683975.png

 

I know that if you send code normally with teams you can insert the ``` and then the code block to get something like this that makes it easy to copy.

 

gusmadvol_2-1721126718899.png

 

Is there anyway of doing this from power automate? 

Categories:
I have the same question (4)

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard