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 / Storing Multiple Files...
Power Apps
Answered

Storing Multiple Files and viewing files using Dataverse

(0) ShareShare
ReportReport
Posted on by 42

Hi 

I have a task management Canvas app for my company using Dataverse as the data source, the app needs to be able to store multiple attachments and the user needs to be able to download/ View these.

 

Since Dataverse columns can only store 1 attachment, I have 2 Dataverse tables 1 of them stores all the attachments as individual records. When I upload these files to Dataverse this works fine, When I display the attachments inside a attachment control this works fine.

Rob1990_2-1706876611311.png

When I come to download the attachments I get an error saying 'File wasn't available on site.'

 

Rob1990_0-1706876531068.png

 

I have followed Reza Dorrani's Youtube video on how to do this which I have done successfully before at a previous company. but for my current company the 'Name' and 'Value' option seem to be missing inside the 'Advanced' tab on the Attachment Control. (TimeStamp: 16:45)

 

Rob1990_1-1706876582069.png

 

 

Upload files to Dataverse from Power Apps | Patch multiple files | File Column tutorial 

 

Has anyone else had this issue or any suggestions for a work around. (My company I don't want to store these inside of a SharePoint Library).

 

Thanks

I have the same question (0)
  • ivan_apps Profile Picture
    2,189 Moderator on at

    From your screenshot you are looking at the data card control - not the attachments control. The data card contains a label, requirement field, error text, and attachment control. You have to select the attachment control inside the data card in order to see those properties. 

     

     

  • Rob1990 Profile Picture
    42 on at

    Hi @ivan_apps 

     

    The screenshot in my post was of the attachment control, Datacard's don't have 'items' properties, nor would it have 'Max attachments' or 'attachments size' as shown in my screenshot. 

     

    I've reattached my screenshot below. In Red you can see the object type, in blue is the name of the object. By default Microsoft names every object inside a form 'Datacard'

     

    Rob1990_0-1707209150596.png

     

    I do wish it was that easy.

     

     

  • ThatTimOverTher Profile Picture
    2 on at

    I had the same issue and wasn't able to find a resolution. However, I found a workaround here:

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Open-SharePoint-List-Attachment-from-PowerApps/td-p/392714

     

    Basically, they set up an icon or button in their gallery, an in its OnSelect property:

    Launch(First(ThisItem.Attachments).AbsoluteUri&"?web=1")

    And it opens the attachment in a new tab. (Remove the &"?web=1" part to download instead of opening in a tab.)

  • Rob1990 Profile Picture
    42 on at

    Hi @ThatTimOverTher 

     

    Thanks I did try something similar however, this isn't working for me I think due to storing the document in column called 'Document', where as in SharePoint you can use the inbuilt attachment column.

     

    Is there a way to reference a file column but also grab the absoluteuri as I can only use 'FIleName' and 'Value' when refencing the document column?

     

    Rob1990_0-1712566122423.png

     

    Thanks 

     

     

  • Verified answer
    Rob1990 Profile Picture
    42 on at

    Previously I did solve this by using flow but it just takes way to long compared to simply clicking a link. 

     

    I eventually managed to get this working. I had to get the link of the file from the Dataverse and put the below code inside the download function and is now working perfect.

     

    Rob1990_0-1712957344218.png

    I am moving this through different environments so used an environment variable for EnvironmentURL, first time I've used this inside a powerapp.

     

    @ThatTimOverTher thanks for your help I did try your suggestion first before finding this

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 493 Most Valuable Professional

#2
11manish Profile Picture

11manish 479

#3
Haque Profile Picture

Haque 328

Last 30 days Overall leaderboard