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 / Downloading files from...
Power Apps
Suggested Answer

Downloading files from dataverse in a canvas app

(1) ShareShare
ReportReport
Posted on by 2
I'm working on a power app that is used for document automation. I have a list of documents that are stored in both dataverse and SharePoint that I would like to be able to download individually or in bulk. The document list uses the dataverse table that stores the files in a custom gallery.
 
Initially, I was using an API that gets the dataverse file column and I just dynamically changed the id in the URL for whichever file(s) were selected and used the Download() function. This works well except for the fact that it only works for one user session, and then once that session is over the API becomes invalid. If I try looking up the record and providing the File column for that record or the File.Value, it says that the URL is invalid (for Launch and Download). I also tried using the Download() and Launch() function with SharePoint URLs but when I did it in bulk, it would only download the first or last selected file depending on whether I was using Launch() or Download(). Another issue with using the SharePoint URLs is that when you use the power app in Teams, it opens a browser tab for each selected file and requests authentication for each one and then only downloads one of them anyways. I've also tried using power automate to create a download link or provide the file to the power app somehow but to no avail.
 
It seems to me that the core of my problem is that I need some way to authenticate users within the power app so that I can have a new auth token for each session, allowing me to use the dataverse api or to not need to authenticate for every download through sharepoint.
 
If there is anyway to add that authentication or another means of downloading the file(s), please let me know. If you need any further information I'll be happy to provide it.
I have the same question (0)
  • Suggested answer
    MichaelFP Profile Picture
    1,999 Moderator on at
    For your scenario  I recommend to use a power automate with the following logic
     
    For single file
    For Dataverse you can get the base64 file using the action that Dataverse connector and send to PowerApps to use with the Launch(). 
    For Sharepoint you can use the Get File Content action that will provide to base64 and send again to Power Apps like the Dateverse.

    For Bulk files
    For here Launch() it will not work for a list or a collection, here i would recommend to get the files (Dataverse and Sharepoint) and copy to a temp folder in sharepoint and share it and send the url link to the Power Apps. So the user will open and can download the files (Sharepoint provide to download all files as zip).
     
    -----------------------------
    If my answer helped you, please give me a thumbs up (👍). 
    If solve your question please mark as answer ✔️. This is help the community.
    If you want talk with me just tag me @MichaelFP 

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

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 428

#2
Haque Profile Picture

Haque 338

#3
timl Profile Picture

timl 333 Super User 2026 Season 1

Last 30 days Overall leaderboard