cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
flyte
Helper II
Helper II

Prevent Duplicate Inserts During a Patch in Button's OnSelect

I have a "Submit" button performing a Patch to do a record insert to a SharePoint collection. AutoDisableOnSelect is set to true which will disable the button while the OnSelect action is being performed. 

 

I am finding that during the "lag" of which the Patch is trying to insert the record into the list, I am able to press the button again, and thus a duplicate entry is inserted. This seems to be happening often with my users because there isn't any visual feedback that the Patch is in progress, (like a progress bar or something) and the users seem to want to hit the Submit button again.

 

Any suggestions on how best to solve this?

 

 

10 REPLIES 10
Meneghino
Community Champion
Community Champion

Hi @Tamas

It seems like you need to use the ID returned by the submit/patch operation in order to avoid duplicates.

Difficult to be more precise without more information.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,142)