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 / Please let me check th...
Power Automate
Unanswered

Please let me check the flow of downloading the PDF file to the OneDrive folder by pasting (or not pasting) it into a tab in the web browser.

(1) ShareShare
ReportReport
Posted on by 32

Please let me check on the OneDrive Business file upload action.

The reason for creating the flow is to download a pdf file by pasting the URL into a web browser.
We would like to automate this process.

In the OneDrive Business file upload action, I paste the URL, execute the flow, and it succeeds,
PDF file is not downloaded to the appropriate location,

The download destination is the OneDrive location.
I have tried both folder and file name for the download destination location, but it does not work.

I tried the http method below, but it fails with status code 302.

https://powerusers.microsoft.com/t5/Building-Flows/Automatically-download-a-file-that-is-in-an-url-link-inside-the/td-p/760982

Please let me check the flow of downloading the PDF file to the OneDrive folder by pasting (or not pasting) it into a tab in the web browser.

 

IMG_1167.jpg
Categories:
  • Michael E. Gernaey Profile Picture
    53,970 Super User 2026 Season 2 on at

    Hi @yRgolkkju 

     

     

    You are using Power Automate for the cloud, but you are trying to download to your Local machine. It has no way to reach that location, unless you have a gateway etc.

     

    When you poing at your C: drive thats not Onedrive, thats merely a linked copy of your online Onedrive

     

    point it to the Online One drive location


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

     

  • yRgolkkju Profile Picture
    32 on at

    Thanks for your reply!
    Sorry, cloud version.
    How do I specify the OneDrive location?
    I tried "Get file content by path" and "Get file metadata by path" in OneDriveBusiness, and then I tried "Upload file via URL" and got an error.
    I then tried "Upload file via URL" and got an error.


    The reason why "Get file content by path" and "Get file metadata by path" are consecutive is for testing.

    IMG_1187.jpg
    IMG_1189.jpg
    IMG_1186.jpg
  • yRgolkkju Profile Picture
    32 on at

    Sorry, the above is addressed to @FLMike ↑

  • yRgolkkju Profile Picture
    32 on at

    I can't solve the problem, if anyone knows what it is, please let me know.

     

    I was able to download a PDF file by specifying OneDrive in the cloud, but when I try to open the file, I get an error and cannot open it.
    I don't know the name of the file until I download it.
    So, I can't download the file from the OneDrive URL and specify the file name under the destination path of the action.
    I have tried specifying an arbitrary file name,
    I was able to download the file, but when I try to open the file, an error occurs and I cannot open it.

    Since the PDF file name is different each time it is downloaded, is it necessary to get the file name from the download source URL before downloading and set that file name to the OneDrive file upload destination?

    Below what I would like to check
    1. confirm the file name before downloading, download the file from the OneDrive URL, and set the confirmed file name in the destination path of the action.

    2. if you cannot get the file name before downloading,
    If you cannot get the file name before downloading, how can you download the file from the OneDrive URL and set the file name in the destination path of the action?

    The file in the URL is a pdf file that is opened from Edge and downloaded, but we want to download the file directly to OneDrive in the PowerAutomate flow.
    The file name changes with each download, so even if I download the file now, it overwrites the file with the previous file name, resulting in a file name inconsistency? I am assuming that the error is that the pdf file cannot be opened due to the file name change.

     

    Also, when I try to get the information of the target url using get in the http action,
    The status code is 302, x-xss-Protection is 1;mode=block, and the information cannot be retrieved.

    IMG_1197.jpg
  • yRgolkkju Profile Picture
    32 on at

    I am trying the file name with the extension (random alphanumeric file name such as XXX) at the end of the file name, the download is complete and the flow is running.
    However, I get the output “Could not open this file (a problem occurred)” and cannot open the PDF file.
  • yRgolkkju Profile Picture
    32 on at
    The file name is not shown at the end of the URL to connect to the pdf and download it.

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
11manish Profile Picture

11manish 237 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 194

Last 30 days Overall leaderboard