SOLVED

Document ID in a Quick Part for Word Templates used across Site Collections

Brass Contributor

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.

5 Replies
I'm afraid this scenario will only work at the site collection level and not the tenant one as you need

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

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.

best response confirmed by Scott_Whitmore (Brass Contributor)
Solution

Hi everyone, So I’ve just had a breakthrough and managed to finally get this all working!

 

To replicate the solution:

  1. Create a new Word document
  2. Copy it to a site collection with the Document ID service enabled
  3. Move the document outside of a SharePoint collection (locally on a PC)
  4. Create a ‘Document ID’ Content Control type (plain text or rich text)
  5. In the XML Mapping pane, find http://schemas.microsoft.com/office/2006/metadata/properties
  6. Find ‘_dlc_DocId’ Under properties/documentManagement
  7. Select the ‘Document ID’ Content Control
  8. Right click the ‘_dlc_DocId’ in the XML Mapping Pane and select ‘Map to Selected Content Control’
  9. Delete the contents of the ‘Document ID’ Content Control. Ensure that ‘Contents cannot be edited’ is unchecked in the Content Control Properties.
  10. Upload the document to a SharePoint site collection using the new ‘Add template’ feature described here
  11. Create a new document from the template drop down menu.
  12. Success
1 best response

Accepted Solutions
best response confirmed by Scott_Whitmore (Brass Contributor)
Solution

Hi everyone, So I’ve just had a breakthrough and managed to finally get this all working!

 

To replicate the solution:

  1. Create a new Word document
  2. Copy it to a site collection with the Document ID service enabled
  3. Move the document outside of a SharePoint collection (locally on a PC)
  4. Create a ‘Document ID’ Content Control type (plain text or rich text)
  5. In the XML Mapping pane, find http://schemas.microsoft.com/office/2006/metadata/properties
  6. Find ‘_dlc_DocId’ Under properties/documentManagement
  7. Select the ‘Document ID’ Content Control
  8. Right click the ‘_dlc_DocId’ in the XML Mapping Pane and select ‘Map to Selected Content Control’
  9. Delete the contents of the ‘Document ID’ Content Control. Ensure that ‘Contents cannot be edited’ is unchecked in the Content Control Properties.
  10. Upload the document to a SharePoint site collection using the new ‘Add template’ feature described here
  11. Create a new document from the template drop down menu.
  12. Success

View solution in original post