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 / extract specified valu...
Power Automate
Unanswered

extract specified value from class using power automate desktop flow

(0) ShareShare
ReportReport
Posted on by 9

Hello,
I am very thankful Community for your support.


I have a concern about extract data from web page .

Shloka_Lakhani_0-1702462530387.png

 

want to extract that value 5. when i use extract data from web page it gives me blank. 

I have the same question (0)
  • UshaJyothiKasibhotla Profile Picture
    225 Moderator on at

    Use get details of the element in the webpage activity 

    or get details of the UI element in window

     

    Try this and let e know if that works

    Usha

  • Shloka_Lakhani Profile Picture
    9 on at

    Thank you for your quick reply@UshaJyothi20

    we are using get details of the UI element in window / web page but not getting attribute value. it gives blank.

     

    Please look at our flow

    image_2023_12_13T11_52_14_591Z.pngimage_2023_12_13T11_54_36_142Z.png
    Thank you for your support. Hope you can understand my concern.
     

  • UshaJyothiKasibhotla Profile Picture
    225 Moderator on at

    Check title check box and try 

    And please see class regex expression 

    You need to write regex for getting 5

    So try to give value like this

    (?<=data-stars=).*/d{1}

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    You need to set the specific attribute you're extracting. It's not the "Own text" in this case. What you need to extract is the "data-stars" attribute value. 

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Shloka_Lakhani Profile Picture
    9 on at

    Hi, @Agnius & @UshaJyothi20 

    Thank you for your quick replay.

    I set the values in selectors of UI 

    Shloka_Lakhani_0-1702539544330.pngShloka_Lakhani_1-1702539561156.png

    it gives error like 2nd screen shot.


    please help me how to set attribute value. or can we add new custom attribute in this?



  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    That's completely off. You did not need to edit your selector in any way. You just needed to change the attribute that you're extracting via Get details of element in web page from "Own Text" to "data-stars".

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Shloka_Lakhani Profile Picture
    9 on at

    @Agnius and @UshaJyothi20 

    I am still confuse and not getting desire output.

    Simply i want value 5 means stars values and web-page inspect be like:

    Shloka_Lakhani_0-1702890422224.png

    I have tried 

    Shloka_Lakhani_1-1702890461387.png

    it gives every time true value when i wrote 'winautomationvis....' . issue is attribute name is with '-' i.e. 'data-star' that why i am not taking value could you please help me to solve this.

    Thank you in advance and your quick responses.

     

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    You are using Extract data from web page, which will not work. You will need to use Get details of element in web page for custom attributes to work.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Shloka_Lakhani Profile Picture
    9 on at

    I have tried Get details of element in page with data-stars attribute name.

    Shloka_Lakhani_2-1703226987210.png

     

    Shloka_Lakhani_1-1703226965274.png

     


    It will throw error like this :

    Shloka_Lakhani_0-1703226940227.png

     

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    What does your selector for the div currently look like?

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 229 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 227

#3
Haque Profile Picture

Haque 181

Last 30 days Overall leaderboard