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:
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.
Solved! Go to Solution.
@demanandy yes, that is a separate problem, one we are aware of.
The orginal post was marked as solved though, did that work-around work for you?
Currently I have not gotten any workaround to work.
The user must wait to make sure the new attachment list loads before clicking. So you are working on it? Is there another work around?
I believe we have some confusion on this thread as we are discussing two separate Attachments issues and it is not clear which issue is being referenced in which post. In order to make some progress here, can I suggest that the original poster describes again his current problem with the latest PowerApps runtime?
If you are having a separate problem, do you mind describing it in another thread (and @reference me in it) and that way we'll be able to look into each issue separately.
Thanks, hopefully this will help us get to the bottom of both issues faster.
In addition to ResetForm(), by removing "Parent.Default" from "Items" property of the AttachmentDatacard resolved the issue for me.
I have implemented this solution and it did not solve the issue.
1) removing parent.default from the items just removes all items
2) placing ThisItem.Attachments into the place of Parent.Default results in the same behavior.
Attachments box still shows old attachments until new ones are recognized (slow with slower network) resulting in opening wrong attachments.
Check out new user group experience and if you are a leader please create your group
Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!
Participate in the Power Virtual Agents Community Challenge
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.