Skip to main content

Notifications

Community site session details

Community site session details

Session Id : DlXd7BQHSPBUErc3zr17SC
Power Apps - Microsoft Dataverse
Answered

Storing Multiple Files and viewing files using Dataverse

Like (0) ShareShare
ReportReport
Posted on 2 Feb 2024 12:25:57 by 40

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

  • Verified answer
    Rob1990 Profile Picture
    40 on 12 Apr 2024 at 21:36:04
    Re: Storing Multiple Files and viewing files using Dataverse

    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

  • Rob1990 Profile Picture
    40 on 08 Apr 2024 at 08:52:25
    Re: Storing Multiple Files and viewing files using Dataverse

    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 

     

     

  • ThatTimOverTher Profile Picture
    2 on 05 Apr 2024 at 19:43:35
    Re: Storing Multiple Files and viewing files using Dataverse

    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
    40 on 06 Feb 2024 at 08:50:10
    Re: Storing Multiple Files and viewing files using Dataverse

    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.

     

     

  • ivan_apps Profile Picture
    2,187 Super User 2025 Season 1 on 06 Feb 2024 at 00:34:34
    Re: Storing Multiple Files and viewing files using Dataverse

    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. 

     

     

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