Forum Discussion
Scott_Whitmore
Dec 12, 2018Brass Contributor
Document ID in a Quick Part for Word Templates used across Site Collections
Hi. I have a requirement to display the Document ID column value in a Document Template that is used across different site collections in SharePoint Online. The Document ID service is enabled for all site collections. If I add the Quick Part in Word for the Document ID on the template, it only works for document created from the template in that Site Collection, however I need it to work in multiple collections.
I currently have other custom SharePoint properties working by adding them to a new content type in the content type hub, however I can't seem to add Document ID to this content type.
Any assistance would be greatly appreciated. Thank you.
Hi everyone, So I’ve just had a breakthrough and managed to finally get this all working!
To replicate the solution:
- Create a new Word document
- Copy it to a site collection with the Document ID service enabled
- Move the document outside of a SharePoint collection (locally on a PC)
- Create a ‘Document ID’ Content Control type (plain text or rich text)
- In the XML Mapping pane, find http://schemas.microsoft.com/office/2006/metadata/properties
- Find ‘_dlc_DocId’ Under properties/documentManagement
- Select the ‘Document ID’ Content Control
- Right click the ‘_dlc_DocId’ in the XML Mapping Pane and select ‘Map to Selected Content Control’
- Delete the contents of the ‘Document ID’ Content Control. Ensure that ‘Contents cannot be edited’ is unchecked in the Content Control Properties.
- Upload the document to a SharePoint site collection using the new ‘Add template’ feature described here
- Create a new document from the template drop down menu.
- Success
- Scott_WhitmoreBrass Contributor
Would anyone know of a workaround to get this working? Thank you.
- If you need to use the Document ID provided by Microsoft that is unique per site collection, I believe we don't have a workaround here that can help you
- Scott_WhitmoreBrass Contributor
Thanks for the reply Juan. I'm surprised this is not a common problem. Do you know of a solution where a word template can have a document ID that works across collections? It would be a nightmare for us to have to create unique templates for every site.
- I'm afraid this scenario will only work at the site collection level and not the tenant one as you need