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 / How to download file i...
Power Apps
Unanswered

How to download file in canvas app using file content?

(0) ShareShare
ReportReport
Posted on by

Hi Folks,

 

I have a canvas app connected to SharePoint via power automate. A service account is used for all connections in Power automate flows thereby removing the need for end users to have any access to backend SPO. The only challenge is when users need to download attachments/files from list/libraries. If we give the SPO URL it will return access denied for users. The flow can certainly get the file content and send it back to canvas app. Is there anyway to let the users download the file using this content from canvas app? I'm not interested in again storing this file content in other data source and give them the link.

 

Any suggestions?

 

Thank you!

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,638 Super User 2026 Season 1 on at

    HI @rbn_nue ,

     

    Perhaps it's an option to have Power Automate send the file to the user in an Email?

  • rbn_nue Profile Picture
    on at

    Hi @BCBuizer ,

     

    Thanks for the suggestion. We already do that for reports that take time to generate. But these attachments/file which are already available on click are expected to be downloaded on the spot. 

     

    Thanks.

  • BCBuizer Profile Picture
    22,638 Super User 2026 Season 1 on at

    Hi @rbn_nue ,

     

    Passing files between Power Apps and Power Automate is not possible. The workaround from Power Apps to Power Automate is to pass the file name and file contents as text and then use those to create a file in Power Automate. Unfortunately there's no function to create files in Power Apps, which is why this doesn't work the other way around.

     

    If you want users to be able to download files directly from the Power App, you'll have to share them with the user.

     

    Having said that, you might consider creating two flows to share / unshare a file and then in Power Apps sandwich a Download function between them. In pseudo code:

     

    FlowToShareFile.Run(File.ID);
    Download(File.URI);
    FlowToUnshareFile.Run(File.ID);

     

  • rbn_nue Profile Picture
    on at

    Hi @BCBuizer 

     

    Thank you for the suggestion. Will try this and let you know how it goes.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard