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 / I want the html output...
Power Automate
Unanswered

I want the html output to show the text in red if the Value is X in the output column else in blck

(0) ShareShare
ReportReport
Posted on by 75

bensat2_0-1714202617003.jpeg

This my original html code where i get all the output in black. 

I have the same question (0)
  • Deenuji_Loganathan_ Profile Picture
    6,255 Moderator on at

    @bensat2 

     

    Simply include an If condition to verify whether the output value of your current item matches the specified value. If it does, set the background color to red, as illustrated in the screenshot. Otherwise, switch the background color to black.

     

    Deenuji_0-1714228583683.png

     

    Deenuji_1-1714228632556.png

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • bensat2 Profile Picture
    75 on at

    t an if in the code i showed not the way you have shown because the output can be matched or not matched is known only in the end. Please show how to use an if condition within <td>  and </td>

  • Deenuji_Loganathan_ Profile Picture
    6,255 Moderator on at

    @bensat2 

     

    You're unable to include an If condition directly within a set variable action. Instead, incorporate the If condition after you checked for a match or mismatch at a specific point in your code.

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 484

#2
11manish Profile Picture

11manish 282

#3
David_MA Profile Picture

David_MA 280 Super User 2026 Season 1

Last 30 days Overall leaderboard