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 / Download the links usi...
Power Automate
Answered

Download the links using PAD

(0) ShareShare
ReportReport
Posted on by 90

Hi, 

I need to download all the links  from the website using PAD. The challenge i am facing is it has "Pdf" and "txt" files. I need to download all the pdf files and save it in one folder . Similar way i need to download all the txt files and drop it in another folder. How to download the links & differentiate the links based on the file extension. Please help. Thanks in advance.

  • Verified answer
    CU31080729-3 Profile Picture
    502 Moderator on at

    Hi,

    my suggestion is first download all file into one folder then after used get file in folder action on the basis of that you have get all file on the basis of your requirement ie, .txt or .pdf file in one variable you can move this file into new one folder. 

     

    (Note:- if you got your solution you can mark as solution and gives kudos)

     

    Thanks & Regards

    Chetan Ninghot

  • VishnuReddy1997 Profile Picture
    2,666 Super User 2026 Season 1 on at

    Hi @DN1 ,

     

    Please find the attached solution.

    I have just tried to match your flow. Just make few changes according to your Process.

     

    VishnuReddy1997_1-1712724741252.png

     

     

    (Note:- if you got your solution you can mark as solution and gives kudos)

     

    Thanks & Regards

    Vishnu Reddy

     

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    What @VishnuReddy1997 suggested would work with a single file, or needs to be placed into a loop. What @Chetan_Ninghot has suggested is a better idea. Download all of your files to a single folder, and then use Get files in folder with a filter for *.txt to get only the .txt files, and use Move file(s) to move them out to the other folder.

     

    That is, assuming the download actually happens without you providing a file name with extension. 

  • DN1 Profile Picture
    90 on at

    Hi @Chetan_Ninghot & @Agnius ,

    Thank you so much for your response. I am new to PAD and web automation. The website i am working for automation does not have option for download all the files. The webpage has like more then 200 file Links and if we click on the filename  Link then it is getting downloading to the PC. Please guide me how to download all the files using PAD. Thanks in advance.

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @DN1 

     

    Is this website accessible to the public? If so, kindly provide the URL so that we can review it and offer assistance accordingly.

     

    Additionally, could you please explain how you are accessing the links on the webpage and how you are clicking them? Are these links being saved in a folder or elsewhere? Please provide more details about your use case.


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • DN1 Profile Picture
    90 on at

    Hi @Deenuji , Thank you for your response. sorry the website is not accessable to public. But it is similar to this website. Sample pdf download - Sample PDF File Download For Testing (freetestdata.com) The website will have file links like i showed in a screenshot.Instead of select file &download the link names will be like 123456789.txt, 88888888.txt, 7655544444.pdf. If we click the link, then the files will get download on the pc.  Thanks!

     

    DN1_0-1712850376978.png

     

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @DN1 

     

    Please find the sample workflow with above mentioned website.

     

    I have mapped the below folder as my download folder for my browser:

    Deenuji_0-1712854925575.png

    Deenuji_1-1712854979778.png

     

    My Flow Screenshot:

    Deenuji_2-1712855022482.png

    Deenuji_3-1712855038435.png

     

    Source code:

    Attached

     

    How to copy/paste the attached code into your PAD?

    Deenuji_4-1712855150989.gif

     

    Incase of any queries please let me know


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

     

     
  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Have you managed to build a flow that downloads one file? I assumed the issue you are having is in identifying the file type, and not in downloading the files themselves. You probably just need to click on the buttons to download the files inside a loop until you download them all. That's why I meant when I said "download all the files into a single folder". Not that you should somehow download all 200+ files in one go - that's not very likely to be possible regardless of the page.

     

    Have a loop that iterates through the available files in the web page, clicks on the buttons to download it, and then save them all in a single folder. Then move a part of the files elsewhere after getting them with a filter.

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 299

#2
11manish Profile Picture

11manish 274 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard