I've built a flow that queries a SharePoint List for information, then builds an HTML table and sends a filtered view via email. I'd like to highlight the status fields with different colored font (or cell color) based on what is in these fields (Blocked/No Issues/At Risk).
I've watched some videos and tried some if(equals...) coding, but the most recent version results in the font color always being the same (bright green), even though the logic states it should be red.
The high-level view of my flow is:
- Get Items (filtered list)
- "Select" action to build the table (this is where I've used the following to try the conditional font color)
- This is the logic I'm using in the fxn below: if(equals(item()?['OverallStatus']?['Value'], 'Blocked'),'red', 'green')

This is the resulting table:

I plan to use the same logic in the remaining status fields, but am trying to dial it in with Overall first.
Any help would be GREATLY appreciated!