3

Has anybody retrieved items by their DocId using powershell. Specifically the ID generated by the DocID service. I'm looking to get details of items based on a (large) list of DOCIDs. I guess I could use the search service but wondered if anybody had done something similar.

3

Using PowerShell you can get it using

$site = Get-SPSite http://siteurl
$provider = [Microsoft.Office.DocumentManagement.DocumentId]::GetProvider($site)
$result = $provider.GetDocumentUrlsById($site, "DocID-1-1")

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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