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
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.
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
Did you select under advanced the value for the value property?
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
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
Hope my blog can help you
https://microsoftcrmtechie.blogspot.com/2022/07/download-images-from-dataverse-image.html?m=1
Why you don't use Power Automate for this kind of operations?
How do i try and authenticate user? As I'm building canvas app using data verse as a backend
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
WarrenBelz
146,745
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,091
Most Valuable Professional