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...
- Jan 17, 2019
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
Jan 10, 2019
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_Whitmore
Jan 10, 2019Brass 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.
- Scott_WhitmoreJan 17, 2019Brass Contributor
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