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 / Viewing multiple attac...
Power Apps
Answered

Viewing multiple attachments from Dataverse table in Canvas App

(1) ShareShare
ReportReport
Posted on by 49
Hi!
 
I followed with video to implement multiple attachments control for my Dataverse table in Canvas App:
 
So, I have a table Signal and 1:N table Signal AttachmentSignal Attachment table has a lookup to Signal and field of type File.
 
 
In Canvas app on New/Edit screen I have a Attachments control (outside of the Form) to upload attachments, and a Gallery to view file names and remove attachments:
 
I have code AttachmentControl.OnAddFile (to add files to colSignalAttachments collection, marked as IsNew), Gallery.RemoveIcon.OnSelect (to mark item in colSignalAttachments as IsDeleted) and Gallery.RestoreIcon.OnSelect (to remove IsDeleted mark).
 
In Canvas app I'm able to upload attachments and save them. If I open my Signal Attachment table in MDA I can see attachments and view it without any issue.
 
 
 
SaveButton.OnSelect:
ForAll(
    Filter(colSignalAttachments, IsDeleted) As ThisAttachment,
    RemoveIf('Signal Attachment', 'Signal Attachment' = ThisAttachment.ID);
);
ForAll(
    Filter(colSignalAttachments, IsNew) As ThisAttachment,
    Patch(
        'Signal Attachment',
        Defaults('Signal Attachment'),
        {
            Signal: ctxViewSignal,
            Attachment: {
                FileName: ThisAttachment.DisplayName,
                Value: ThisAttachment.Value
            }
        }
    )
);
 
However, I cannot download attachments on my View screen. 
 
AttachmentControl.Items:
ForAll(
    Filter(
        'Signal Attachment',
        Signal.Signal = ctxViewSignal.Signal
    ).Attachment,
    {
        DisplayName: ThisRecord.Attachment.FileName,
        Value: ThisRecord.Attachment.Value
    }
)
 
It shows my files names correctly, but on download I receive "BlobNotFound":
 
 
The only noticible difference between my app and the video guide is that I cannot map DisplayName and Value field on the Attachment Control Properties pane (there are no such properties).
Categories:
I have the same question (0)
  • Verified answer
    IuriiPalchuk Profile Picture
    49 on at
    Instead of using Attachments control, I created a Gallery with modern buttons with icons to download files via Dataverse API. And it looks much nicer with file type icons:
     
     
    How to download file from Dataverse File column using Dataverse API:
    How to show file type icons in gallery:

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard