cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cooltechie
Helper IV
Helper IV

SharePoint Attachments field caching previous records attachment when creating a new item

Hi,

 

I have a Power Apps form and I see a strange issue where the attachments field on the form is showing the attachment that was attached for previous item. This is happening when a new item form is opened. Why is  power apps trying to cache this value?

 

Any thoughts as to how I can prevent this?

 

Thanks

13 REPLIES 13

Hi @cooltechie ,

 

Please try to delete the whole Attachments data card from the form control and then readd it from Fields. 

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Mahesh0205
New Member

@cooltechie and @RezaDorrani ,

 

Requesting your help on the same Issue , I have tried all the approaches mentioned in this thread .

 

SP Integration New/Edit/View - ResetForm(),Refresh(DataSource)

Removed the Attachment Datacard and added back to the form again 

I have added the code as below , 

 

OnNew : 

ResetForm(SharePointForm1);

NewForm(SharePointForm1);

OnEdit : 

ResetForm(SharePointForm1);

Refresh('RMR-PA-Design');

EditForm(SharePointForm1);

OnView:

ResetForm(SharePointForm1);
Refresh('RMR-PA-Design');
ViewForm(SharePointForm1);

 

But Still I am getting the same Issue

Requesting your help to resolve this Issue .

 

Regards,

Mahesh

 

I am also facing the same Issue. Requesting your help to resolve this Issue.

 

Regards,

Chaitanya

 

automateUser
Regular Visitor

I was able to work around this by applying the following in the SharePointIntegration > Property > onView

 

OnView:

Refresh('datasource');
ViewForm(SharePointForm1);

ResetForm(SharePointForm1);  <<--- notice the order that it comes right after ViewForm

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (3,688)