cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Cannot Clear Attachments in PowerApps

Hi,

 

I have created an app which has the possibility to add an attachment, and therefore is connected to a SharePoint list.

When I'm done creating an item in the SharePoint list with PowerApps and have added an attachment, I want to create a second item. But when I get to the screen where to add an attachment, the attachment from the previous added item is still visible.

This looks like the same problem as multiple users have described here and for those users there isn't a solution yet. Only for the poster of the item.

 

I have tried to use this:

ResetForm(EditForm1);NewForm(EditForm1);Navigate(EditScreen1,ScreenTransition.Fade)

All the fields are being resetted, except the attachment field.

 

If I remove the attachment with the "X" when I add the second item, and click on a button which have only ResetForm and NewForm as onSelect, the attachment will return. So, apparently the attachment wasn't really removed by clicking the X, otherwise it would not return right?

 

Any help would be appreciated on this strange matter.

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Frequent Visitor

Re: Cannot Clear Attachments in PowerApps

Hi,

 

Trying to reproduce this issue, it apparently does not happen anymore. So, hopefully this issue won't come back anymore. For now it's solved.

 

Thanks for your help anyway!

View solution in original post

Highlighted
New Member

Re: Cannot Clear Attachments in PowerApps

In addition to ResetForm(), by removing "Parent.Default" from "Items" property of the AttachmentDatacard resolved the issue for me.

View solution in original post

36 REPLIES 36
Highlighted
Frequent Visitor

Re: Cannot Clear Attachments in PowerApps

I have what I assume is the same issue, however mine is on "EditForm(myform)". For a few seconds the form will show the attachments from prior use with that form. Additionally, if an attachment is selected, I will actually get the old attachment and not the one associated with "thisitem" of the sharepoint list I am working with. I have set my navigation button from the gallery to be "ResetForm(myform);EditForm(myform);navigate(myform,none)" with no avail.
Highlighted
Frequent Visitor

Re: Cannot Clear Attachments in PowerApps

Anyone has a solution for this?

Highlighted
Anonymous
Not applicable

Re: Cannot Clear Attachments in PowerApps

Hi @Burner1 and @demanandy I found this blog post that deep dives attachments. The post does have a section on clearing attachments as well. i will include the link below. If it's not helpful please let me know and I will research further. 

 

https://wonderlaura.com/2018/08/23/powerapps-gallery-of-attachments/

 

@Anonymous 

Frequent Visitor

Re: Cannot Clear Attachments in PowerApps

Hi @TopShelf-MSFT,

 

Thanks for your suggested solution.

 

The link of Laura describes how to get attachments into a collection, from the attachment control (linked to a SharePoint list). She describes how to clear the collection as well.

 

What I would like to have is that the attachment control it self (with all the attachments in it) is cleared with ResetForm, but that doesn't seem to work for my situation. 

If the form is being reset and you want to add a new item, the previous added attachments are visible, unless the ResetForm was used.

If needed, I can make a clip of what haappens to clarify.

Highlighted
Anonymous
Not applicable

Re: Cannot Clear Attachments in PowerApps

Thanks for the updated response @Burner1. If you could include a clip in the thread, I will add in someone from the Product Team and have them review. 

 

@Anonymous 

Highlighted
Frequent Visitor

Re: Cannot Clear Attachments in PowerApps

Hi,

 

Trying to reproduce this issue, it apparently does not happen anymore. So, hopefully this issue won't come back anymore. For now it's solved.

 

Thanks for your help anyway!

View solution in original post

Highlighted
Frequent Visitor

Re: Cannot Clear Attachments in PowerApps

This is still an issue, and it does depend on connection speed.

 

See attached video.   It only has about a second delay, but you can see the attachment update when I go to the form.  It is much slower when the network is slow.  Also note that if it is clicked before it changes, it pulls the wrong attachment.

 

Sorry about the background noise.

Highlighted
Advocate I
Advocate I

Re: Cannot Clear Attachments in PowerApps

Hi,

Urgent!!!

Please need you Help for this issue.

 

i have the same problem and it will stop full project to go live because of this issue.

 

Any one have a soultion for this.

 

 

Highlighted
Frequent Visitor

Re: Cannot Clear Attachments in PowerApps

This issue is not resolved. I am still facing issue. After submiting form using powerapp couple of times, it come with previous attached file by default. 

 

Surprised to see this kind of weird thing.

 

Any help would be appreciated.

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,349)