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 HTML Table ...
Power Automate
Unanswered

Formatting HTML Table in Power Automate

(0) ShareShare
ReportReport
Posted on by Microsoft Employee
0
Hello Community,
I have a requirement in Power Automate where I want to format an HTML table and color the particular cell's items based on choices we made.

Scenario: I have a SharePoint List that has a choice column and I wanted to reflect that column's items based on values selected with different colors. Then send the email where it is in the HTML table.

But in my case, I get the output as shown below.

Format HTML Table.jpg

 

In the Compose action, I have used this expression:

 

<style>
 table {
 border-collapse: collapse;
 width: 100%;
 }

 th, td {
 border: 1px solid #dddddd;
 text-align: left;
 padding: 8px;
 }

 th.job-post-date {
 background-color: #add8e6;
 }

 td.job-post-date {
 color: yellow;
 font-weight: bold;
 }
</style>

 

And I want the output to be like this as shown below,

Create HTML table.jpg

 Can someone please help me out to resolve this? Thanks in advance!

Categories:
  • lbendlin Profile Picture
    8,726 Super User 2026 Season 1 on at

    Use a Compose action to manually craft the HTML for your 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 307 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 127

Last 30 days Overall leaderboard