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 / Delete attachments fro...
Power Apps
Unanswered

Delete attachments from SharePoint Data Source from PowerApp

(0) ShareShare
ReportReport
Posted on by

Hi,

I have a SharePoint Attachment data with the items property set as below. I have created a collection in the OnVisible property of the Screen and passing this collection into the Attachments item property.

Filter(colReadEditModeAttachments,StartsWith(DisplayName,"keyDoc"))

SumanthDHIT_0-1713885329391.png

In the OnRemoveFile property, I would like to pass each removed item into a Collection and on submit of the form, I would like to pass this collection to PowerAutomate to delete the selected items which are in the collection. 
On the first road block itself, I am not able to pass each removed item into Collection. Please help.

I tried the code below, but this kept only adding the same filename into the Collection when I tried to remove more than one attachment.

Collect(colDelAttachments,{fileName:LookUp(colReadEditModeAttachments,DisplayName=ThisRecord.DisplayName).DisplayName});

Thank you!

@WarrenBelz 

Categories:

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 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard