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 / Blank page when downlo...
Power Apps
Suggested Answer

Blank page when downloading a file from Dataverse

(1) ShareShare
ReportReport
Posted on by 2,295
My app is allowing users to download files from Dataverse.
 
It works well when the user is signed into what I believe is CRM dynamics, but when is not, the download opens a blank page.
 
Example: with this URL:
 
https://mydomain.crm4.dynamics.com/api/data/v9.2/pg_attachmtoses(fdfdsfae)/pg_anexo/$value
 
If the user opens https://mydomain.crm4.dynamics.com/ and signs in, he's able to download the files, but if the login cookie isn't present in the browser, he gets a blank page.
 
Is there a way to get around this?
 
Any help?
 
Thanks in advance!
 
 
I have the same question (0)
  • Suggested answer
    MichaelFP Profile Picture
    1,847 Super User 2025 Season 2 on at
    you are providing the URL as a link do download the file? If you are doing that it will always not work if the user is not logged in in the system.
     
    "https://mydomain.crm4.dynamics.com/api/data/v9.2"  it is a webapi that is required to be authenticated to make the request. So the user will always be authenticated to be able to retrieve. if your are not logged in you must send the OAuth authentication before do the request.
     
    This is not like a file inside a folder on a hosted website. that you just click and will return the binary. if you want to some similar i would recommend to user Azure Blog Storage for that.
     
     
    If my answer helped you, please give me a thumbs up (👍). If solve your question please mark as answer ✔️. This is help the community.
  • Shashank Bhide Profile Picture
    942 Moderator on at
    no easy solution if you don't have a developer on your side who knows how to connect to Dataverse using C# or power automate, one way is to create a function app/power automate which connects to Dataverse and downloads the file using the path you mentioned then streams that file's binary data over HTTP as response and your client browser will receive it as a downloaded file. 
  • MichaelFP Profile Picture
    1,847 Super User 2025 Season 2 on at
    Create a power automate that you can call by HTTP request of type get. 
     
    Retrieve the file and response with the file. 
  • WebPortal Profile Picture
    2,295 on at
    Hello all,
     
    Thanks for your support with this matter, it is becoming an important issue for multiple apps I've developed.
    If anyone is aware of more detailed documentation for a solution, I'd really appreciate.
     
    Thank you!

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard