Announcements
Hello,
I have a gallery with attachment control. When having Gallery selected item I wish to remove one out of maybe 3 attachments. Looking for guidance how to do such thing.
Hi @Anonymous ,
Do you randonly want to remove the item from the attachment control or you have any 'X' icon to remove the selected attachment from the attachment control ?
A screenshot will be helpful.
Hi @PriyankaGeethik
Yes I do "X" but I don't use EditForms to create this attachment controls. All of my fields and items are created/updated via Patch. No SubmitForm(Form1) thing
For attachment control use this action ,OnRemoveFile on this action use flow to remove the desired file from the sharpoint.
@vidyadhar Hello,
Do you have an example how to do such flow?
In the Create screen do you have this control ?
@PriyankaGeethik
Yes I do and I use OnAddFile:
Then I just push that data via PowerFlow and issue solved. If I could somehow get those attachments into Collection again and maybe somehow to compare them I could run same flow but backwards
As per your code it seems you are collecting all the attachments in colFinalData. Are you pushing all the attachments at once or one by one ?
Yes I do push all of them at the same time in a flow.
@Anonymous
In that case it is possible for you to create a gallery and add colFinalData as item and show the attachment name in text field and add a cross icon on click of which you can delete the files and after that on button trigger or some other trigger you can push the remaining attachments into the flow.
Is there a way to pull File ID in PowerApps?
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 429 Most Valuable Professional
11manish 191 Super User 2026 Season 2
MS.Ragavendar 122 Super User 2026 Season 2