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 / Removing Attachments u...
Power Apps
Answered

Removing Attachments using Attachment control

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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. 

Categories:
I have the same question (0)
  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    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. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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

    LukasSliuzas_0-1629270258748.png

     

  • vidyadhar Profile Picture
    33 on at

    For attachment control  use this action ,OnRemoveFile on this action use flow to remove the desired file from the sharpoint.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @vidyadhar Hello,

     

    Do you have an example how to do such flow?

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @Anonymous ,

     

    In the Create screen do you have this control ? 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @PriyankaGeethik 

     

    Yes I do and I use OnAddFile:

    LukasSliuzas_0-1629272129830.png

     

    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

     

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @Anonymous ,

    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 ? 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes I do push all of them at the same time in a flow.

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    @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. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @PriyankaGeethik 

     

    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.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 429 Most Valuable Professional

#2
11manish Profile Picture

11manish 191 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 122 Super User 2026 Season 2

Last 30 days Overall leaderboard