We are using the Document Approval workflow. Using SharePoint Designer I have modified the OOB workflow so that it logs additional information - mainly so far making sure that the name of the document (item) being approved is included in all logged history messages.
I would like to also include the Version of the document which the workflow has been run on. This would help us for auditing documents later (these are mostly project documents which go through many iterations over a project lifecycle and need to be approved at various gates).
The only way I have found to get the document version in a Workflow is to use a lookup on the Document Library:
The problem with this is that the Workflow is now hard-coded to a specific Document Library and in order to use it in another Site (or another Document Library within the same Site for that matter) I need to edit the Workflow every time.
Is there a portable way to get the Version of the Current Item in a Workflow, using SharePoint Designer?
Note - if I have 'Current Item' as Data Source (setting a variable or in String Builder) then the options I have for the Field are:
- Approval Status
- Created
- Created By
- Encoded Absolute URL
- GUID
- ID
- Modified
- Modified By
- Title
In other words, no Version or Current Version.