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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Change font color base...
Power Automate
Answered

Change font color based on specific text | HTML table in email

(0) ShareShare
ReportReport
Posted on by 2

Hello!! 

 

I am recreating an excel table in power automate to be sent by email. I already have my table, however I want that font Color of the 'column 3' to change to Green when the word "GREEN" is found and red when the word "RED" is found. I tried several different things and nothing works. 

tfernandes_4-1698240301774.png

 

Final table that I have now and I want to change the color of the word GREEN to green and the same for red in the third column..

tfernandes_5-1698240512923.png

Essentially I need the code to conditionally format the text when the email is sent out. 

Thank you in advance!!

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @tfernandes ,

     

    I've made a test for your reference:

    vbofengmsft_1-1698284271096.png

    replace(replace(body('Create_HTML_table'),'Red','<span style="color:red;">Red</span>'),'Green','<span style="color:green;">Red</span>')

     

    vbofengmsft_0-1698284228283.png

     

    Best Regards,

    Bof

     

  • tfernandes Profile Picture
    2 on at

     

    Thank you for your reply but I need to know where I should add this steps, because I already have my flow working and also my own "create html", "compose", etc functions. In witch step I have to insert the initialize variable and the other too? I tried several different ways without success. I will send you my flow detailed.

     

    tfernandes_0-1699268039183.png

    tfernandes_1-1699268069428.png

     

    tfernandes_2-1699268146053.png

     

     

  • bensat2 Profile Picture
    75 on at

    i have similar requirement , in power automate desktop if the html output in the outlook has the word "NotMatched it should be in red and if it is Matched it should remain black.

    bensat2_0-1714223684327.jpeg

     

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!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 239 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 177 Super User 2026 Season 1

#3
Kalathiya Profile Picture

Kalathiya 97 Super User 2026 Season 1

Last 30 days Overall leaderboard