SharePoint display SP version number in a word document

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”.

VersionNo_1

In this area we have to select the content type by click on the name

VersionNo_2

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}

VersionNo_3

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.

VersionNo_4

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.

VersionNo_5

VersionNo_6

Pretty cool.

 

 

 

 

 

The article or information provided here represents completely my own personal view & thought. It is recommended to test the content or scripts of the site in the lab, before making use in the production environment & use it completely at your own risk. The articles, scripts, suggestions or tricks published on the site are provided AS-IS with no warranties or guarantees and confers no rights.

About Karsten Schneider 312 Articles
Consultant for Microsoft 365 Applications with a strong focus in Teams, SharePoint Online, OneDrive for Business as well as PowerPlatform with PowerApps, Flow and PowerBI. I provide Workshops for Governance & Security in Office 365 and Development of Solutions in the area of Collaboration and Teamwork based on Microsoft 365 and Azure Cloud Solutions. In his free time he tries to collect tipps and worthy experience in this blog.

6 Comments

  1. 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

1 Trackback / Pingback

  1. Insert SharePoint version number in a word document - busitec Blog

Leave a Reply

Your email address will not be published.


*