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 / Get background color o...
Power Automate
Unanswered

Get background color of HTML table cell

(0) ShareShare
ReportReport
Posted on by

Dear PAD experts,

 

I have a question I hope someone can help me with. I'm extracting an html table using the wizard. The auto-generated extraction source looks like this: html > body > div:eq(19) > table > tbody > tr > td > div > div:eq(2) > form:eq(2) > table

 

In addition to the content shown in the table, I'd like to extract the background color of each row. The goal is to identify rows with a specific color. 

 

I already tried to "get attributes from web element" based on single table cells, but the activity does not provide the desired attribute "background-color" in the dropdown menu. Typing it in there manually leaves the generated variable empty.

 

Does anybody have an idea how to solve this?

I have the same question (0)
  • julia5306 Profile Picture
    31 on at

    If you inspect the table using F12 in your browser, are you able to see if the style is part of the table row or if it's above it? If the style is within the table row, you can extract the "style" attribute:

    <tr style="background-color:yellowgreen;color:white;">

     For this case you would want your extraction to look something like this:

    julia5306_0-1670586547572.png

    This does extract everything after the "style", so you would then probably have to crop the text to just have the background colour, and do this for every row in the table.

     

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 253 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 172 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 134 Super User 2026 Season 2

Last 30 days Overall leaderboard