How to get the Document ID?
-
06-12-2019 - |
Pergunta
Is there a way to get the Document ID for the item just got uploaded?
using (Copy copyService = new Copy())
{
copyService.Credentials = CredentialCache.DefaultCredentials;
copyService.Url = "http://webserver/site/_vti_bin/copy.asmx";
copyService.Timeout = 600000;
uint itemId = copyService.CopyIntoItems(destinationUrl , destinationUrlArray, fields, xmlByteArray, out resultsArray);
}
Solução
You will need to load the item in a subsequent call since the Document ID is generated separately.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a sharepoint.stackexchange