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

SharePoint List - HTML Table via Email FLOWS - Changing Row Color based on a field value

I'm looking to change the background color of a particular row that has a field call "Pay Type" with a value of "Salary".   I have the following that formats the table in FLOWS via "Initialize variable" string:

 

FLOW:  Recurrence-> Get Item-> Initialize variable-> Select-> Create HTML Table-> Compose-> Send and email (V2)

Table.JPG

 

 

 

<style>
table {
border: 1px solid #000000;
background-color: #ffffff;
width: 100%;
text-align: left;
border-collapse: collapse;
}
table td, table th {
border: 1px solid #000000;
padding: 3px 2px;
}
table tbody td {
font-size: 13px;
}
table thead {
background: #C5E0B3;
border-bottom: 2px solid #000000;
}
table thead th {
font-size: 15px;
font-weight: bold;
color: #000000;
border-left: 1px solid #000000;
}
table thead th:first-child {
border-left: none;
}
</style>

 

 

 

 

 

 

1 REPLY 1
Microsoft
Microsoft

Hello @York2020 

I was looking into the information provided for this and I think I found a post that maybe can help you achieve what you are looking to have, please check on: https://powerusers.microsoft.com/t5/Building-Flows/HTML-Table-Conditional-Format/td-p/400260

I hope you find it helpful.

 

Thanks.

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (33,966)