Question

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);
}
Was it helpful?

Solution

You will need to load the item in a subsequent call since the Document ID is generated separately.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top