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 / Can't extract HRef fro...
Power Automate
Unanswered

Can't extract HRef from element

(0) ShareShare
ReportReport
Posted on by 170

Hello everyone,

 

I am extracting information from this website(https://www.cmvm.pt/PInstitucional/Content?Input=4008993412B9C693F50CBA7B3664784BB928365EC6542C816D75485385A6DD48) and when I extract the HRef from this button in the picture below

TelmoERF96_0-1698936338290.png

It always returns me the same link for each button, link this which is not the correct one I want

TelmoERF96_1-1698936471136.png

 

But when I press the button on the website it takes me to a page with the correct link each button.

 

Does anyone know how I can get the correct link in my extraction without having to press and open each instance.

 

I really appreciate the help,

 

Telmo Ferreira

  • NathanAlvares24 Profile Picture
    1,714 Moderator on at

    Hi @TelmoERF96 !

     

    If you right click -> Inspect, you get the following:

    NathanAlvares24_0-1698954515537.png

    As you can see from pic, in the href attribute only "#" that is always directing to the same website. So nothing is wrong with what your extracting.

     

    Now, what I noticed is that if I click the link, it directs me to something else of which I think is what you actually want as seen in pic below:

    NathanAlvares24_1-1698954723635.png

     

    The reason as to why this is happening is because you have some javascript code which is preventing the default action of the anchor tag to be executed. You could inspect the Network tab in FireBug or Chrome DevTools to see if some AJAX request is being made when you click on the link. You could try excluding javascript files until you find the one that is doing this.

     

    Regards,

    Nathan Alvares

  • TelmoERF96 Profile Picture
    170 on at

    Hello @NathanAlvares24, thank you for your answer

     

    I am able to reach the display with the AJAX requests but I have no practice with something like this so I don't know how from that I could retrieve the actual link that I want.

     

    If you could help that would be great, thanks in advance.

     

    Telmo Ferreira

     

     

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard