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.
When I come to download the attachments I get an error saying 'File wasn't available on site.'
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)
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
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.
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
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?
Thanks
I had the same issue and wasn't able to find a resolution. However, I found a workaround here:
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.)
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'
I do wish it was that easy.
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.
WarrenBelz
146,745
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,091
Most Valuable Professional