I'm using the following code to get a document via its documentid in a ASP MVC application:
... // Get Document ID ctx.Load(uploadFile, f => f.ListItemAllFields); ctx.ExecuteQuery(); documentID = uploadFile.ListItemAllFields.Id; ...
This seems to work fine, but not in combination with the Sharepoint Document ID Service. I have the following prefix: Sales00(docID) for all documents, but the CSOM only returns the docID.
If I include a link in my MVC application like above it shows the id as in '81' and not as 'Sales0081'. How to retrieve the correct value?