Thank you for reaching out on Microsoft Q&A!
I've tested it in my lab, and this is possible by adding CSS to your email.
It's basically an HTML email, meaning you can style parts using CSS as you would with normal HTML. For this, create a 'Compose' action in your Logic App with the name "CSS" and add in the code below which colors your table (be sure to convert red and blue to the color codes of your liking):
<style>
table {
border-collapse: collapse;
border-spacing: 0;
}
tr, td, th {
border: 1px solid black;
}
th {
background-color: blue;
font-weight: bold;
color: white;
}
tr:last-child {
background-color: red;
font-weight: bold;
}
</style>
Now go to your email action and add the 'CSS' action output on top of your mail using the dynamic content:
When you send the mail it should appear like this:
Please click “Accept answer” if you find this helpful. Feel free to drop additional queries in the comments below.
Kind regards,
Sonny