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 Apps / Download Function Bloc...
Power Apps
Unanswered

Download Function Blocked By Browser

(0) ShareShare
ReportReport
Posted on by Microsoft Employee
I have created a Powerapp where i have a button to download a file from SharePoint library. To achieve this, i am using PowerApp's Download function on Button's "On Select" property.
 
When i only call download function inside 'onselect' property of button it works perfectly and downloads my file instantly.
 
But, when i call a MS Flow and Download function together inside 'onselect' property of button, the browser blocks my file and i have to unblock it manually to download it.
Note: My flow call approximately takes 5-6 seconds to process, post then download function is being called.
Example: MyFlow.Run(); 
 
Anybody has any idea why my file is blocked by browser in second scenario.
 
Thanks in advance! 
Categories:
I have the same question (1)
  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    I made a test on my side, but cannot reproduce the issue you mentioned. The download function is not blocked.

    Blocking may be the protection mechanism of the browser, please check the browser security setting, try another browser to see if the issue is fixed.

    If there is no relationship between the download link and the flow output, how about moving the Download in front of Flow.Run function?

    Hope this helps.

    Sik

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi,

    Thanks for your response. 

    My download function is dependent on flow's output as I am getting the URL from flow's output and then passing it to Download function. so can't put it before flow run.

     

    Also, I checked the browser settings, it is same for both the scenarios. Even tried it on multiple browsers, but same behavior on all of them.

     

    Thanks

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    To reproduce the issue, please try to add a delay of 5 seconds in your flow and return the URL from it. Then consume that URL in PowerApps in download function. you'll be able to reproduce it then.

     

    Thanks

     

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Could you please share the detailed flow steps and canvas app configuration. What is the 5-second delay for?

    Please check my test, it still works fine on my side.

    GIF_66.gif

    Sik

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi, 

    In my case, the flow takes approximately 5 seconds to upload the file to SP and return the URL. Actually,  I am calling a HTTP azure function from flow to upload the file. So, all that processing takes 5 seconds.

     

    To troubleshoot the issue, I created a dummy flow and powerapp where I removed the azure call and simply added a 5 second delay in my flow, but that too is not working (which is working fine for you). I wonder if I am doing anything incorrect.

    Screenshots attached.  

     

    Thanks

    Saksham

    Flow.PNG
    Powerapp.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

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard