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 / Error Access denied wh...
Power Apps
Unanswered

Error Access denied when trying to download a file from a Dataverse table

(0) ShareShare
ReportReport
Posted on by 2,295

Hello,

 

I'm trying to download a file from a Dataverse table with the expression:

Download("https://orgxxx.crm4.dynamics.com/api/data/v9.2/cr43d_tablexxxes(50e81adc-4e38-ee11-bdf4-000d3aaa0ef9)/nn_anexos/$value")

Which is returning the error:

Server Error in '/' Application.
Access is denied.
Description: An error occurred while accessing the resources required to serve this request. This may have been caused by an incorrect user name and/or password.

Error message 401.1: Logon credentials were not recognized. Make sure you are providing the correct user name and password. Otherwise, contact the Web server's administrator for help.

 

My user roles in this environment:

 

Approvals user

System administrator

Basic user

 

The table configs:

WebPortal_0-1691926491893.png

 

 

 

 

 

I have the same question (0)
  • AhmedSalih Profile Picture
    6,678 Moderator on at

    Hello, @WebPortal, are you including the authentication from where you are using that expression? 

     


    If my reply helped you, please give a 👍 If it solved your issue, please give a 👍 & accept it as the Solution to help other community members find it more.

    Visit my Blog: www.powerplatformplace.com

    Visit my YouTube Channel: https://www.youtube.com/@powerplatformplace/videos

  • WebPortal Profile Picture
    2,295 on at

    @AhmedSalih 

    What do you mean, the role assignment?

  • AhmedSalih Profile Picture
    6,678 Moderator on at

    @WebPortal, whoever running that expression against the dataverse, needs access to the data. You need security roles assigned to the user/serviceaccount/flow owner that is accessing the dataverse tables.

     


    If my reply helped you, please give a 👍 If it solved your issue, please give a 👍 & accept it as the Solution to help other community members find it more.

    Visit my Blog: www.powerplatformplace.com

    Visit my YouTube Channel: https://www.youtube.com/@powerplatformplace/videos

  • WebPortal Profile Picture
    2,295 on at

    @AhmedSalih 

     

    I keep getting the same error, I did a lot of trial and error, but can't figure out what kind of permissions I must grant to the security role to allow users to open a tab and view the attachments.

     

    Can you help?

     

    Thanks in advance!

  • WebPortal Profile Picture
    2,295 on at

    Does anyone know what the permissions are for allowing a user to preview or download a file from Dataverse?

     

    Still, haven't found a solution.

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