Sometimes you need to insert the Version number of a word document stored in a SharePoint library in the content area of the word document. As Björn wrote, you can use code to achieve it. But i would like to share another approach which does not need coding. The trick is to use the label function in SharePoint library settings.
Well, let’s start by the beginning. At first we have to go into the document library settings and click on the “information management policy setting”.
In this area we have to select the content type by click on the name
And now we can do the magic. We activate the checkbox for Labels and i would recommend to prevent changes to labels after they are added.
In the label format you have to add the property of the SharePoint document for the version string which is
{_UIVersionString}
It’s also possible to user other properties. But let’s go on, by adding it to word.
Click ok and the we have to go the word template in the library. Open the template for editing. In word you can then use the tab Insert and choose “Document property” from Quickparts menu.
Now it should have a property called “Label” which you can insert in the word document. After saving the template and open a new word document of it, it should display the version string of your document.
Pretty cool.
Now that feature has been deprecated in Sharepoint 2013 is there another method to insert version number into a document? I read that Microsoft removed this as it did not meet records management user requirements…those users must be from planet Mars
I have the same issue here. Is there a way to achieve this?
Try {Version} instead of {_UIVersionString}
Hi,
Can someone please explain how I can do the same with the date for when the document is updated/approved?
Thanks in advance
/Henrik
thanks a lot for valuable article .
for me this works with sharepoint 2013+office 2013:
field code:
{DOCPROPERTY RevisionNumber }