cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Burner1
Level: Powered On

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
Burner1
Level: Powered On

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

JMahedi
Level: Power Up

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

30 REPLIES 30
demanandy
Level: Powered On

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.
Burner1
Level: Powered On

Re: Cannot Clear Attachments in PowerApps

Anyone has a solution for this?

Administrator
Administrator

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/

 

@TopShelf-MSFT 

Burner1
Level: Powered On

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.

Administrator
Administrator

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. 

 

@TopShelf-MSFT 

Burner1
Level: Powered On

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

demanandy
Level: Powered On

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.

Mo_gamal
Level: Powered On

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.

 

 

Soyeb_Malek
Level: Powered On

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 336 members 6,644 guests
Please welcome our newest community members: