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 / How to remove an attac...
Power Apps
Unanswered

How to remove an attachment from a related table within the attachments control

(0) ShareShare
ReportReport
Posted on by 95

Hey Guys, I have canvas app in team which saves attachments into a related table when the user submits the edit form (Patches at OnSuccess). The attachments control displays the patched attachments from the related table and also allows the users to add addition file. I want to be able to use this attachment control to remove the selected attachment within this control using the X icon.

iKettle_0-1690444384682.png

 

I saw that there is a property call OnRemoveFile which I tried the following formula to remove the selected attachment, but it shows me errors

Remove(IDRRFISupportingDocs, ThisItem)

The error that I'm getting is

iKettle_1-1690444776872.png

 

Does anyone know how I could overcome this error with the correct formula to use? For the Items Property of the Attachment Control I have 

ForAll(Filter(IDRRFISupportingDocs, IDRRFITable.IDRRFITable = BrowseGallery1_2.Selected.IDRRFITable). Documents, {DisplayName:ThisRecord.Documents.FileName, Value:ThisRecord.Documents.Value})

Any Help will be appreciated. 

I have the same question (0)

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard