Hi All,
I am having some issue in duplicating and patching records multiple times using different browser or different user doing the same operation at the same time. It works fine when duplicating 1 record at time or using same browser however issue occurs when using different browser or different users at the same time, it starts repeating application number. e.g. let's say last saved record number is SW-00082 and I need to duplicate 5 records but at the same time different user trying to do same thing on different record, that's when it start repeating please refer below example.

Below is code.

If anyone can help me with above issue that would be great please.