Our business requirements to set a unique serial number for the newly created item in the list, so in order to do that I created a workflow to update the item custom serial number list, however, this workflow has only 2 actions, not more, whereas it takes much time to startup and updates the list item,
so the results are many duplicated items with the same name.
even we need to figure out the best way to make the workflow running faster.
Does anybody have recommendations for this issue?
I didn't find a way to speed up the workflow as it depends on the timer jobs in cloud. I used a different logic to sort this out.
1) Initial ID created by capturing last item ID and increment by 1
2) Used a condition if custom ID on last item is empty jump to next item and increment by 2
3) Again if custom ID on next item is empty jump to next item and increment by 3
My solution works querying up to 3 items, no more duplicates were created