Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Send an email with html table styling

I have a requirement for coloring a particular column in HTML table with 3 different cell background color based on cell value. The source is from List rows from a excel table in power automate and the table. Need your guidance and support to crack this logic for coloring a particular status column Not started -> Red, In Progress --> Yellow, Completed --> Green  dynamically like with If condition.

Please explain with the Power automate connectors and expression screenshots where we are inputting the logic for cell Background colors based on cell value

Super User
Super User

@Muthu_VIjayan  Use one compose in which input should be like- <td>Your Status dynamic value</td> and then create 3 compose actions for each status value with your background style For example- <td style="background-color: Red>Not started</td>

Now in your html table in place of column td use expression if(equals(),..)

Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

@Hardesh /


Can you explain me where i need to add the if condition?



Helpful resources

Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (4,606)