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 / Why is is so hard to d...
Power Automate
Unanswered

Why is is so hard to download files from browser using Power Automate?

(0) ShareShare
ReportReport
Posted on by 66

I am frustrated.  I have tried several ways to download a file using Power Automate and Power Automate Desktop (see footnote).  But every method I have tried does not seem to work.  The original error I got was "Downloading files with Microsoft Edge is not supported.  Consider using Automation Browser"

 

@momlo  I tried your solution of using automated browser, but biggest problem I ran into was the fact the internet explorer auto-redirects now to edge. See figure 2, below.

 

@Henrik_M, I also tried your suggestions combined with Michael Annis, but I cannot figuring out the proper method of configuration for unattended automation.  Specifically, the the default user for automation does not have a writable download folder due to security permissions set by my IT.   So, my concern is running in unattended mode; as then the file would write to no where. 

 

Can anyone help?

 

 

Figures

spmofulton_8-1682368543218.png

Figure 1:   This is the original error that I get.

 

spmofulton_6-1682366332187.png

Figure 2:   The Automation Browser no longer seems to work

 

Appendix:

These are the related threads that I have tried the solutions to:

Categories:
  • momlo Profile Picture
    1,527 Super User 2024 Season 1 on at

    Hi @spmofulton 

    It's not that automation browser does not work, but more and more website are build to support modern browsers.

    That's one of the reasons I have moved away from it.

    I'm wondering what Microsoft's approach will be to "automated browser" - I guess they might ship chromium based, streamlined version of Edge at some point, or just remove the option entirely.

     

    Here you have a working code that downloads file using Chrome, allowing you to specify download folder, and preserving the original file name

     

    1. Chrome - automate "save as" dialog box - my preferred option
    In this case:

    - Browser: Always ask for a file save location

    - Explorer (File Explorer): Show file extensions, this is needed to obtain full name of the file we download (if we do it as in my example)

     

     

     

     

    WebAutomation.LaunchChrome.LaunchChrome Url: $'''https://github.com/microsoft/Windows-universal-samples/releases/download/MicrosoftDocs-Samples/FileAccess.zip''' WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 BrowserInstance=> Browser
    SET DownloadFolder TO $'''C:\\TEST\\'''
    WAIT (UIAutomation.WaitForWindow.ToOpen Window: appmask['Pane \'File access ... - Google Chrome\'']['Window \'Save As\''] FocusWindow: True) FOR 60
    UIAutomation.GetElementDetails Element: appmask['Pane \'File access ... - Google Chrome\'']['Edit \'File name:\''] AttributeName: $'''Own Text''' AttributeValue=> FileName
    SET FileDownloaded TO $'''%DownloadFolder%%FileName%'''
    UIAutomation.PopulateTextField TextField: appmask['Pane \'File access ... - Google Chrome\'']['Edit \'File name:\''] Text: $'''%DownloadFolder%%FileName%''' Mode: UIAutomation.PopulateTextMode.Replace ClickType: UIAutomation.PopulateMouseClickType.SingleClick
    UIAutomation.PressButton Button: appmask['Pane \'File access ... - Google Chrome\'']['Button \'Save\'']
    WAIT (File.WaitForFile.Created File: FileDownloaded) FOR 60

     

     

     

     

     

    2. Any browser - get the latest downloaded file from your Downloads folder - my least preferred

    In this case your browser needs to be set to always save files to Downloads folder, and never ask for file save location.

     

     

     

    System.GetEnvironmentVariable.GetEnvironmentVariable Name: $'''USERPROFILE''' Value=> UserProfile
    SET DownloadFolder TO $'''%UserProfile%\\Downloads'''
    Folder.GetFiles Folder: DownloadFolder FileFilter: $'''*''' IncludeSubfolders: False FailOnAccessDenied: True SortBy1: Folder.SortBy.NoSort SortDescending1: False SortBy2: Folder.SortBy.NoSort SortDescending2: False SortBy3: Folder.SortBy.NoSort SortDescending3: False Files=> FilesBeforeDownload
    WebAutomation.LaunchChrome.LaunchChrome Url: $'''https://github.com/microsoft/Windows-universal-samples/releases/download/MicrosoftDocs-Samples/FileAccess.zip''' WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 BrowserInstance=> Browser
    LABEL CheckFiles
    Folder.GetFiles Folder: DownloadFolder FileFilter: $'''*''' IncludeSubfolders: False FailOnAccessDenied: True SortBy1: Folder.SortBy.NoSort SortDescending1: False SortBy2: Folder.SortBy.NoSort SortDescending2: False SortBy3: Folder.SortBy.NoSort SortDescending3: False Files=> FilesAfterDownload
    Variables.SubtractLists FirstList: FilesAfterDownload SecondList: FilesBeforeDownload OutputList=> FilesDownloaded
    IF FilesDownloaded.Count = 1 THEN
     SET FileDownloaded TO FilesDownloaded[0]
     GOTO FileDownloaded
    ELSE
     GOTO CheckFiles
    END
    LABEL FileDownloaded
    

     

     

     

     

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 377

#2
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 130

Last 30 days Overall leaderboard