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 a images from web ...
Power Automate
Unanswered

Get a images from web page

(0) ShareShare
ReportReport
Posted on by

Is there any option to get count/html of all images in a specific table/webpage using power automate desktop?

I have the same question (0)
  • burque505 Profile Picture
    398 on at

    @keyurpsspl1, you can do it with the 'Run JavaScript function on webpage action.

    I don't have any affiliation with this website, I just picked it at random because it had multiple images.

    You'll need to do more processing if you want to get the URLs of the images into Excel or some other program, but maybe this will get you started.

     

    images_flow.png

    This is the code for the first function:

     

     

     

     

     

    function ExecuteScript() { 
    var imagez = document.getElementsByTagName("img");
    return imagez.length;
    }

     

     

     

     

     

    'imagez.length' is the count of images, but as a number. If you want to display it you need to convert it to text first (see flow).

    The second function grabs the URL of the first image on the page. Then it's displayed in a message box.

     

     

     

     

     

    function ExecuteScript() { 
    var imagez = document.getElementsByTagName("img");
    return imagez[0].src;
    }

     

     

     

     

     

    You can also experiment with 'Get details of element on web page'. This is often (some might say always) a better approach. You can modify the selector to use variables, of course.

    Attributes-flow.png

    Saving the best for last, you can 'Extract data from webpage'.

     

    extract.png

    Here I just grabbed all the images on the page and stored the URLs in an Excel sheet. If you need the count, you can count the rows with an Excel action.

    A couple of video links for this action:

    Extract data from webpage 

    Price extraction 

    Nice post on the forum by @Ameer 

  • fraenK Profile Picture
    2,125 on at

    Just simple two lines does it all:

    WebAutomation.DataExtraction.ExtractList BrowserInstance: Browser Control: $'''img''' ExtractionParameters: {['', 'Source Link', ''] } ExtractedData=> DataFromWebPage
    SET ImgNum TO DataFromWebPage.RowsCount

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 784

#2
Valantis Profile Picture

Valantis 589

#3
Haque Profile Picture

Haque 522

Last 30 days Overall leaderboard