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 / Attachments Control Wi...
Power Apps
Unanswered

Attachments Control With Gallery

(0) ShareShare
ReportReport
Posted on by 108

Hi all,

 

I have edit form which contains attachments in attachment card. I have added a custom card and added a gallery to view my attachments from attachment card.

 

Gallery:

Items

DataCardValue12.Attachments

 

In gallery image

ThisItem.Value

 

 

Here I have added a delete button in gallery to remove any of my selected attachment from gallery.

 

If I want to delete the selected attachment from gallery then it should reflect in an attachment card.

 

Can someone help me on this.
Thanks

Categories:
  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @Jackson_Dhorty ,

    The only way in Power Apps to delete (or add) an attachment is with an Attachment control, which must reside in a Form, so unfortunately you cannot do it from a gallery.

    You could however consider a Flow - I cannot test the below currently, but you need to send the AbsoluteUri of the one you want deleted

    WarrenBelz_0-1640297387973.png

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

  • Jackson_Dhorty Profile Picture
    108 on at

    Thanks for the reply  . 

     

    I already did this in my new form screen. Unfortunately, i am unable to do it edit form.

     

    Note: I don't want to delete attachment from list, I just want to delete from the card if selected attachment from gallery

  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @Jackson_Dhorty ,

    I bit of outside the box here - on the OnSelect of the Delete button (I assume it is inside the gallery)

    Collect(
     colDeleted,
     {File:ThisItem.Name}
    )

    and the Items of the gallery

    Filter(
     YourAttachmentControl.Attachments,
     !(Name in colDeleted.File)
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @Jackson_Dhorty ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard