I need to add a sequential number to a user property employee-id. The initial value is e.g. '100'. If I run the powershell script which is part of the workflow for 1 user at a time it works fine. I do this by adding 1 user to the set this workflow/mpr is
attached to.
The script will increment by 1 to 101.
If I have multiple users in the set, this method fails. As the workflow is run simultaneously more than 1 user end up with an employee-id of 101.
How can I get a unique sequential number for a workflow?
Thanks