Skip to main content

Notifications

Community site session details

Community site session details

Session Id : pXsQFHTzpOzwlZySpZmKtW
Power Automate - Power Automate Desktop
Unanswered

Power Automate Download All Files from Website displayed over Multiple pages

Like (0) ShareShare
ReportReport
Posted on 23 Nov 2022 03:09:33 by 2

Hi there,

Can anyone help with advising how to best setup a flow to automate downloading of files from a webpage?

The webpage has a tabular display of which one column holds these files. The filename is more like a hyperlink where once you click on it, it starts to download. The page can be set to display 25 or 50 lines. Therefore, one has to click to download these files individually and then upon completion, move to the next page and repeat the above steps for the next group. There is more than 10K pages. Happy to breakdown into batches if it makes it any easier.

 

I was doing 25 files at a time using Recorder function then moving to next page to repeat. However, a recent updated on Power Automate and Edge has caused this method to not work anymore saying the object cannot be found once I move to the next page. Any other method to speed this up will help.

Thanks

 

  • momlo Profile Picture
    1,527 Super User 2024 Season 1 on 25 Nov 2022 at 07:24:59
    Re: Power Automate Download All Files from Website displayed over Multiple pages

    Hi
    If those links/urls are href elements then my approach would be preety standard:

    1. Extract all links.

    1.1 Use Extract data from web page action to extract all links from all pages:
    https://learn.microsoft.com/en-US/power-automate/desktop-flows/actions-reference/webautomation#extractdata

    1.2 Add action to your flow and open it's settings
    1.3 Open web page
    1.4 Start right clicking the links and select "href" attribute. After two or three you it all other should get automatically selected.
    1.5 Right click the "next" button that you use for moving to next page and select as a pager.
    1.6 In action setting remember to enable extracting data from all pates.

    ---

    2. Loop through links 

    Now you want to click the links, but why to click them if you already have them in extracted variable? 😉

    My approach would be to use "for each" loop through the list of link sand use browser action and navigate to URL.

  • VJR Profile Picture
    7,635 on 25 Nov 2022 at 04:30:05
    Re: Power Automate Download All Files from Website displayed over Multiple pages

    Yes, find one link and change the selector as other links. Same reference here. May need exploring depending on your particular scenario.

    Click all the elements in a list of links - Power Automate | Microsoft Learn

    This link uses Click link on webpage. First try that and then also try with the above 2 download actions.

  • UDev Profile Picture
    2 on 25 Nov 2022 at 04:17:11
    Re: Power Automate Download All Files from Website displayed over Multiple pages

    Hi, not sure how you setup the Flow as there are other links also on the page. Do I record link to one file then use loop function for remaining links?

  • VJR Profile Picture
    7,635 on 25 Nov 2022 at 02:59:38
    Re: Power Automate Download All Files from Website displayed over Multiple pages

    Check out if any of these two options makes it any easier.

    VJR_0-1669345166233.png

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,081 Most Valuable Professional

Leaderboard
Loading started