Skip to main content

Notifications

Power Automate Desktop
Suggested answer

Cannot get "Extract Data From Web Page" to extract 2 elements from ALL rows in an html table

Posted on by 2
I am attempting to use the Extract Data From WebPage action in a desktop flow to extract a single column from an html table into a datatable. I'd like to get the Text of the column along with the href attribute of the column (which contains an <a> tag within a <td> tag. There are several hundred rows in the table. I attempt to the the live web helper to right mouse button and select first the text element and then the href attribute of the <a> tag. That seems to work but it only ever extracts a single row from the html table when i run the flow. How can i get all rows to be retrieved ? See screen shots for the html table and anchor tag that is the source of my data extract. According to chatgpt, i should see an option as i'm building the flow that allows me to designate all rows in the html table, but power automate desktop is not prompting me for that and ends up limiting itself to 1 and only 1 row from the html table. pretty new to automated data flows, so any help would be appreciated. thanks.
Categories:
  • Suggested answer
    harish_sada Profile Picture
    harish_sada 37 on at
    Cannot get "Extract Data From Web Page" to extract 2 elements from ALL rows in an html table
     

    Note: This method works only when table rows and columns are static (Not values)

    Follow the steps below

     
     
     
     
     
     
     
     
     

     
    WebAutomation.LaunchEdge.LaunchEdge Url: $'''https://rpademo.automationanywhere.com/itbricks_enroll.php''' WindowState: WebAutomation.BrowserWindowState.Maximized ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 PiPUserDataFolderMode: WebAutomation.PiPUserDataFolderModeEnum.AutomaticProfile BrowserInstance=> Browser
    WebAutomation.ExtractData.ExtractTable BrowserInstance: Browser Control: $'''html > body > form > center > table > tbody > tr''' ExtractionParameters: {[$'''th:eq(0)''', $'''Own Text''', $'''''', $'''Value #1'''], [$'''td:eq(0)''', $'''Own Text''', $'''''', $'''Value #2'''] } PostProcessData: True TimeoutInSeconds: 60 ExtractedData=> DataFromWebPage
    WebAutomation.CloseWebBrowser BrowserInstance: Browser


     

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

September 2024 Newsletter…

September 2024 Community Newsletter…

Community Update Sept 16…

Power Platform Community Update…

Welcome to the new Power Platform Community!…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 141,157

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,414

Leaderboard