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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Formatting table colum...
Power Automate
Answered

Formatting table columns from Create HTML Table action

(0) ShareShare
ReportReport
Posted on by 24

Hello,

 

I created a table from the Create HTML Table action and wanted to conditionally format the cells (background color, text color, and font weight) by whether or not the 2nd column is true/false. Does anyone know how I would replace those row values?

 

maeux_1-1717109713766.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    David_MA Profile Picture
    14,595 Super User 2026 Season 1 on at

    This is not possible with the Create HTML table action. If you want to do this, it will be a lot trickier. You'll need to:

    1. Initialize a string variable named rows (or whatever you prefer).
    2. Use an Apply to each to generate each row for the table.
    3. You'll need to add a condition to check the current item for the background color you want to use (I assume the True/False value).
    4. Then on each side of the condition, use an Append to string variable to create the HTML row with the styling you want. For example:  <tr style="background-color: green;"><td>May 28, 2024</td><td>True</td></tr>
    5. If you are using the output to send in an e-mail, you will need to put your e-mail action into HTML mode and enter the <table> and </table> tags and put the output of your variable in between: <table><variable></table>

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 840

#2
Valantis Profile Picture

Valantis 661

#3
Haque Profile Picture

Haque 589

Last 30 days Overall leaderboard