Click here to Skip to main content
15,892,737 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

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

Kate.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900