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

Blank page when downloading a file from Dataverse

(1) ShareShare
ReportReport
Posted on by 2,297
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
    2,001 Moderator 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
    946 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
    2,001 Moderator 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,297 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

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#2
11manish Profile Picture

11manish 186

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 105 Super User 2026 Season 1

Last 30 days Overall leaderboard