I created a workflow to calculate the correct version of a document, taking into account that the documents we are putting onto SharePoint already have a version number before transfer to SharePoint. The workflow starts when a document is edited and Approval status = Approved (this will be true after an approval workflow runs that starts when a new major version is published.)
If this condition is met, the workflow calculated imported version + version and outputs to a variable calc3.
Then the workflow sets the variable "actual_version" to the value of calc3.
This sort of works, but when the workflow runs it creates a new draft version of the document, the calculated actual_version is associated with the draft version, not the published major version as I need it to be.
Is there anyway to stop the workflow from creating a new draft version?
Thanks