AnsweredAssumed Answered

2 workflow instance executes at same time

Question asked by cdesai on Jan 18, 2017
Latest reply on Feb 2, 2017 by paul.crawford

I am working in Nintex 2013 (and Sharepoint 2013).

Requirement: When employee joined the company, employee details are entered in SharePoint list Employee and after save Unique ID is generated. This ID is fetched from GenerateID list which has 1 row 1 column. 

 

During save of list item, Nintex workflow fetch latest ID from GenerateID list and Increment it with 1 and assigned it to column Employee ID (Latest ID + 1) in Employee list and override this latest ID in GenerateID and for another new Employee it will do the same activity and so on. In short, every Emp should have unique ID.

 

Issue

 

this application is used across location which result in duplicate ID - may be multiple Admin. clicks on SAVE button at same time. This rarely happens, but what could be fix for this. How to restrict workflow instance to stop till earlier workflow instance finish its activity. 

 

- Chintan

Outcomes