Showing results for 
Search instead for 
Did you mean: 
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?



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

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group


Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (90,371)