web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 279 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 229 Super User 2026 Season 1

#3
VASANTH KUMAR BALMADI Profile Picture

VASANTH KUMAR BALMADI 195

Last 30 days Overall leaderboard