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 from Web Ques...
Power Automate
Unanswered

Download from Web Question

(0) ShareShare
ReportReport
Posted on by 2

Hi - I'm attempting to build a flow in Power Automate Desktop that downloads a report from a website.  The report itself has a direct link I can use outside of PAD such as https://site.com/export.aspx?export=xls%det=<report name> which downloads the report in Excel format.  However when I try to use PAD to "Download from Web", it downloads the export.aspx or sometimes login.aspx if authentication is needed.  I am able to automate opening a new Chrome session, going to the login page and logging in, and then telling it to "Download from Web", but even then it only downloads an aspx file instead of the report.  It's almost like PAD isn't able to handle the values being passed after the .aspx?.

 

I've tried simulating logging into the site, going to the report page and telling it to click on the export report link itself, but that's been unpredictable as sometimes it doesn't keep the webpage in focus or doesn't find the UI element I made for the export button.  Ideally I'd like to use these direct export links I have since I have a lot of reports I can download using them and I'm trying to avoid having to load up each report and hitting the export button.

 

Is there a better way of handling this kind of download flow?

Thanks!

I have the same question (0)
  • Highboy Profile Picture
    1,187 Super User 2024 Season 1 on at

    What if you just open Chrome with the link to the report, and if asked to login, let PAD do so, then it should download the report.

    I use that method, in some of my scripts.

  • rolign Profile Picture
    on at

    You can try using Http connector via cloud and download file there:

    rolign_0-1659011759635.png

    Or use Invoke Web Service on PAD:

    rolign_1-1659012031812.png

     

  • mgeertz Profile Picture
    2 on at

    That's what I tried to do at first.  If I past the full export link into a browser, it downloads the file fine, no prompt for login since I'm already authenticated to the site in my browser session.  However telling PAD to do the same thing redirects to login.aspx (and if I turn off redirect, it downloads export.aspx as a 1kb file with the contents of the login.aspx page).  So I tried letting it do a login first and then downloading, but it did the same thing regardless...I feel like PAD is ignoring everything after the "/export.aspx?"

     

    I just tried using the Invoke web service, but had the same result.  Not sure if maybe I'm supposed to put something in the Request Body like the values being passed to the export function?

     

    I think I'm going to try via cloud instead of PAD using HTTP connector as suggested and see if it makes a difference...

  • Pavel_NaNoi Profile Picture
    1,074 on at

    Any update on this? Can't bloody wrap my head around this, always get login.aspx no matter what.

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

    I also have a number of internal sites where this was the case.

    As much as I would love PAD to handle those with a single action - Imaho this is not a PAD issue but the nature of the site.

    Action such as "download from web" requires a "clean" link meaning there is no code executed in the browser or backend before the file is served - just the pure response is a file.

    Also afaik this action works in IE/automation browsers only and not Chrome/Firefox/Edge.

    In those, you need to go to the report URL, and automate the "save as" window"

     

    If I past the full export link into a browser, it downloads the file fine, no prompt for login since I'm already authenticated to the site in my browser session.

    The reason for that is your site is executing extra code in such as authentication/authorization validation that can not be executed while using "download from web or API"  

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard