web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Azure Blob download file
Power Apps
Suggested Answer

Azure Blob download file

(1) ShareShare
ReportReport
Posted on by 44

Hi All,

 

Im wondering if anyone knows how to download azure blob files in Power Apps?

 

I can upload perfectly well, i can use a shared access signature to download.  The problem with that is that SAS URLs are anonymous and can be accessed by anyone in the world.  We need to make sure the blob files can only be downloaded by people in our tenant.

 

I cant figure out how to download files in Power Apps not using a SAS URL

 

has anyone managed to get this to work? im basically going to have to switch over to SharePoint Online which seems like a massive step back.

 

- the Download and Launch functions dont allow a file binary to be passed to them.

- if i send the user to the standand URL of blob file, it says the file is not there (no SAS key in the URL)

- am i meant to use a Custom Connector and configure that to get a token and get the file? how would i download that anyway?

 

it seems like Power Apps cant acess blob files securely?

 

 

 

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    on at

    Hi @bettc :

    Firstly,only users in the same tenant can access your app, so you don’t have to worry about users who are not in the same tenant.(Even guest users need you to invite them to tenants and share the app with them before they can access the app)

    Share canvas apps with guests in your organization

    Secondly, if you are worried that users in the tenant can obtain the URL of the file by editing the App and then spread it to the outside world, then you can restrict user access or edit app permissions by assigning security roles.

    Manage security for your environments

    Best Regards,

    Bof

  • bettc Profile Picture
    44 on at

    the URL to the file is still anonymous. its not the security within the power app. its the URL's lack of security for the blob file as it contains the SAS key.

     

    ended up getting a PCF control that allows Power Apps to send a file to the browser without a URL for downloading.

     

    Both the Launch and Download functions in Power Apps need a URL.  Even though in my Power App i have the base64 string content, filename and mimetype there is no way to send that to the browser so the user can download it. 

     

    the PCF control allows that. no more anon SAS key, just the file.

     

    https://github.com/rwilson504/PCFControls

     

    it would be good if the Download function was extendend to take the base64 string and filename as well as a URL

  • rohitsbots Profile Picture
    280 on at
    @bettc which pcf control did you use ?
  • Suggested answer
    Power Platform 1919 Profile Picture
    1,890 on at
    Hi @bettc, the workaround what i use generally is (Power Automate Way):
    1. Prepare your inputs to pass to flow as Input parameters
    2. Get the file content for selected azure blob (binary content)
    3. Then use OneDrive connector to create a file with the fetched content
    4. Then generate a share link for the newly created file 
    5. Send the generated link back to power apps (use download /launch function Along with ?download=1 to force download)
    6. add a delay of 30 seconds or upto 5 min and delete the file.

    I always use this workaround if I have to download anything to power apps.

    Please give the mentioned solution a try and let me know whether it works for you.
    If it solves your issue, feel free to mark this thread as answered.
    Please make sure to like the response!
    Thanks!
    - Hemanth Sai

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard