I have a document library with a few different content types. When documents are added to the library either via new or upload I want to run a workflow that numbers the documents (so contracts have a contract number & change orders have an order number). The counters are in a separate list - one item for each counter, a last number and a calculated next number.
So for contract numbers the workflow gets the nextnumber for the counter and enters it into the contract number field of the current item before sending it back to the counter as last number.
The workflow is set to start on item creation and works just fine with new documents. However, it doesn't work on uploaded documents. In order to discern between the different content types I've set a field condition to recognize if the workflow should run. When uploading documents the workflow runs before the field is set and therefore doesn't set the contract number.
I tried just setting a 5 min "wait" at the start of the workflow, but then the document fails to save.
Workflow:
Sorry it's in Norwegian, I can't figure out how to get the conditions and actions into English (all my buttons etc are in English)...
Any ideas on how to get the workflow to run properly in order to update the contract number?