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 / PAD - Extract data fro...
Power Automate
Answered

PAD - Extract data from web page - Help with Selector

(1) ShareShare
ReportReport
Posted on by 26
Is there a way how to select only the highlighted element?

I'm able to select only the <td> but that's not what I want. I need to select only the first number if possible.
 

Thanks!
 
ASD.png
I have the same question (0)
  • Deenuji_Loganathan_ Profile Picture
    6,250 Moderator on at
    Hi,

    Could you please explain with some example exactly what you want to extract? Like you want to extract only 140 from the first td?
     
     
  • farb_ Profile Picture
    26 on at
    Hi - I'd like to extract the entire number: 140,774.82
     
    At the moment I extract the full <td> element and then do some text gymnastics (croping, replacing) to get just that number but it slows the process down a bit so I'm looking for a way to select just this piece of data.
     
    Thanks!
  • Suggested answer
    eetuRobo Profile Picture
    4,522 Super User 2026 Season 1 on at
    You can use advanced settings and use regex inside the action:



    That returns all the Saldo values like this:


    Paste this action to your PAD:
    WebAutomation.ExtractData.ExtractList BrowserInstance: Browser Control: $'''html > body > div:eq(5) > table > tbody:eq(1) > tr''' ExtractionParameters: {[$'''td:eq(3)''', $'''Own Text''', $'''^\\d{1,3}(?:,\\d{3})*(?:\\.\\d{1,2})?'''] } PostProcessData: False TimeoutInSeconds: 60 ExtractedData=> DataFromWebPage

    Or you can get just the first rows value:
  • farb_ Profile Picture
    26 on at
    It works, brilliant! :)
     
    Would you be so kind and help me also capture the 4 sets data shown on this screenshot? 🙏🙏🙏
     
    RED - Only the values [capital letteers] (without the small ones on the row 8 for example)
    PURPLE - Only the values in brackes without the USD
    BLUE - Only the values between the "$" and "@"
    GREEN - Only the values after then last "$" symbol
     
     
  • Verified answer
    eetuRobo Profile Picture
    4,522 Super User 2026 Season 1 on at
    Glad to hear it worked. And sure here should be one that takes all those column values.

    Action to paste to PAD:
    WebAutomation.ExtractData.ExtractTable BrowserInstance: Browser Control: $'''html > body > div:eq(5) > table > tbody:eq(1) > tr''' ExtractionParameters: {[$'''td:eq(2) > span''', $'''Own Text''', $'''^[+-]?\\d{1,3}(?:,\\d{3})*(?:\\.\\d{1,2})?''', $'''Value #1'''], [$'''td:eq(2) > span''', $'''Own Text''', $'''(?<=\\()\\d{1,3}(?:,\\d{3})*(?:\\.\\d{1,2})(?=\\sUSD\\))''', $'''Value #2'''], [$'''td:eq(3)''', $'''Own Text''', $'''^\\d{1,3}(?:,\\d{3})*(?:\\.\\d{1,2})?''', $'''Value #3'''], [$'''td:eq(4)''', $'''Own Text''', $'''[\\d,.]+?(?=\\s*@)''', $'''Value #4'''], [$'''td:eq(4)''', $'''Own Text''', $'''\\d{1,3}(?:,\\d{3})*(?:\\.\\d+)?$''', $'''Value #5'''] } PostProcessData: False TimeoutInSeconds: 60 ExtractedData=> DataFromWebPage
    

    Advanced settings looks like this:




    Result:
  • farb_ Profile Picture
    26 on at
    Amazing, thanks a lot!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 976

#2
Valantis Profile Picture

Valantis 863

#3
Haque Profile Picture

Haque 547

Last 30 days Overall leaderboard