Skip to main content

Notifications

Community site session details

Community site session details

Session Id : txW2eHavWiRjshXCSqiImI
Power Apps - Microsoft Dataverse
Unanswered

Trying to download file stored in dataverse

Like (0) ShareShare
ReportReport
Posted on 8 Apr 2022 08:07:10 by 25

Hi ALL

 

I have scenario where in on click on button in gallery it has to download a file stored in dataverse 

However the issue is I'm able to download others are getting http401 unauthorized issue through I have added them in my environment and have given access to the table it's not working and it's working for few 

I'm using

Download (https//:org79e2e2a5.crm.dynamics.com/api/tablename(tableuniqueid/columnname/$value)) 

No issue with link only that few are able to access few or not 

Errorhttp401

  • nm14 Profile Picture
    12 on 09 Apr 2024 at 20:53:26
    Re: Trying to download file stored in dataverse

    Try this : For the users who are not able to access, ask them to login to your Env URL first : https//:org79e2e2a5.crm.dynamics.com

    after that ask them to try to download the file. It will work. This is not related to access to the table/column but some authorization issue. I am also facing this.

  • rialjo Profile Picture
    4 on 08 Aug 2023 at 14:02:05
    Re: Trying to download file stored in dataverse

    I was having the same issue as the OP, and adding permissions for the Activity File Attachment table to my security role fixed the issue.  Thanks

  • Community Power Platform Member Profile Picture
    on 12 Jul 2023 at 09:06:24
    Re: Trying to download file stored in dataverse

    Did you select under advanced the value for the value property?

     

  • Prakash4691 Profile Picture
    1,332 on 14 Feb 2023 at 00:34:12
    Re: Trying to download file stored in dataverse

    @Muzammil_0695,

    If you are trying to download file from file attribute in an entity make sure to give necessary privilege in activity file attachment table. If you are trying to download from activities section kindly give permission to notes entity.

     

    If it is from file attribute check whether field security profile is enabled for those field.

     

    I think canvas/model driven can't be accessed as anonymous user only the power apps portal or power pages can be accessed as anonymous user.

     

     

    Regards,

    Prakash

  • gidiscacciati Profile Picture
    69 on 13 Feb 2023 at 16:42:42
    Re: Trying to download file stored in dataverse

    Hello, did anyone get a solution for these? I am getting the same results. I have an app and can use the Download() function from Power Apps. Although, I have noticed that if I use an anonymous window or log in using a different browser, I get the 401 error as well.
    I have also noticed that if I go to the table and edit the record using the form view, it asks me to authenticate again, and then I am able to download the file from the form and inside the app.

    Does anyone know if there is a way to embedd this second layer of authentication when the user acesses the app? Is there a connection that needs to be done or something else? I have tried adding AzureAD connection to the app, but the results were the same.

     

    Any idea is appreciated.

     

    Thanks

  • Ram Prakash Profile Picture
    5,166 Super User 2025 Season 1 on 20 Aug 2022 at 06:47:41
    Re: Trying to download file stored in dataverse

    Hi @Muzammil_0695 

     

    Hope my blog can help you

     

    https://microsoftcrmtechie.blogspot.com/2022/07/download-images-from-dataverse-image.html?m=1

  • pmesiha Profile Picture
    50 on 19 Aug 2022 at 19:35:25
  • Ismael_Novo Profile Picture
    306 on 09 Apr 2022 at 13:11:22
    Re: Trying to download file stored in dataverse

    Why you don't use Power Automate for this kind of operations?

     

    https://www.youtube.com/watch?v=D2_WCvelCHo

  • Muzammil_0695 Profile Picture
    25 on 08 Apr 2022 at 11:28:13
    Re: Trying to download file stored in dataverse

    How do i try and authenticate user? As I'm building canvas app using data verse as a backend 

  • Guido Preite Profile Picture
    1,488 Super User 2024 Season 1 on 08 Apr 2022 at 10:55:20
    Re: Trying to download file stored in dataverse

    also make sure your users are authenticated to dataverse first, if they open the instance first after they will be able to download the file

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,745 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard

Featured topics