Notifications
Announcements
To send a JSON object in an email with readable formatting, you can use Power Automate's HTML capabilities to structure the JSON in a way that is easy to read. Here's how you can achieve it:
json()
string()
json(string(<Your JSON Object>))
replace(string(<Your JSON Object>), ',', ',<br>')
Use the "Send an email" action to create a well-structured email body.
<p>An error occurred in one of the flows. Below is the JSON object:</p> <pre style="background-color:#f4f4f4;padding:10px;border:1px solid #ddd;border-radius:5px;"> @{outputs('Compose')} </pre>
Since you’re using a child flow for error handling, ensure that:
replace
The JSON will appear nicely formatted and easy to read:
{ "Key1": "Value1", "Key2": "Value2", "Key3": { "SubKey1": "SubValue1", "SubKey2": "SubValue2" } }
If you want a cleaner look, convert the JSON into an HTML table for emails:
Use the "Create HTML Table" action:
Embed the table in the email body:
<p>An error occurred in the flow. Below is the JSON data:</p> @{outputs('Create_HTML_table')}
<pre>
Let me know if you’d like a detailed walkthrough of any part! 😊
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 503 Super User 2025 Season 2
Tomac 321 Moderator
abm abm 237 Most Valuable Professional