I am newbie into SharePoint and I am currently working on a tool supposed to make references to documents coming from a SharePoint document library. Is there any concept of unique ID to identify a document global to SharePoint site ? From what I understand the unique ID is supposed to be the combination of the site + list (GUID or by title) and the document position into the list. Is it correct? What does happen if the document from the list is removed and another one added? Are we sure the position will not be re-used?

I also found that DocId returned by REST list items service returns some ID like that d:OData__dlc_DocId = AJ2AUVWQC7CM-5-4. Is it a kind of unique ID? What does this ID mean?

1 Answer 1


Yes it will be the unique ID. Whenever you add an item to the list a new ID will be assigned to it. There is nothing like reusing ID.

When the Document ID service is first enabled, new documents in the site collection will automatically be assigned new IDs. A timer job is scheduled to assign IDs to documents already in the site collection. Also, when the service is enabled, a new column is automatically added to the Document and Document Set content types. The Document ID column displays the ID assigned to an item.

In order enable the Document ID feature you must be a site collection administrator.

  1. Go to the top-level site collection.
  2. Click Site Actions and then click Site Settings.
  3. Under Site Collection Administration, click Site collection features.
  4. Next to Document ID Service click Activate. An Active icon appears next to the item and the feature is activated for the current site collection.

Document IDs consist of two parts, a prefix (that is randomly generated per site collection by default) and two sets of numbers. An example Document ID looks like this: J2W3DN6QF6XW-2-10. The first number is the ID of the list that the document was first created in and the second number is the ID of the item in that list. The prefix can be specified per site collection and can easily be changed from the Document ID settings page.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.