Sto tentando di caricare un documento dal mio computer locale utilizzando il servizio web Copy.asmx, il metodo CopyIntoItems. Posso caricare correttamente il documento e una proprietà DateTime ma non riesco ad aggiornare una proprietà di ricerca della raccolta documenti. Sto usando MOSS 2007 con SP2non può aggiornare il campo di ricerca durante il caricamento del documento utilizzando CopyIntoItems
Il codice che sto usando è la seguente:
string[] destinationUrls = { Uri.EscapeUriString(destinationUrl) };
CopySharepointService.FieldInformation dateInformation = new CopySharepointService.FieldInformation();
dateInformation.DisplayName = "Date";
dateInformation.Type = CopySharepointService.FieldType.DateTime;
dateInformation.Value = DateTime.Today.ToString();
CopySharepointService.FieldInformation fundInformation = new CopySharepointService.FieldInformation();
fundInformation.DisplayName = "Fund";
fundInformation.Type = CopySharepointService.FieldType.Lookup;
fundInformation.Id = new Guid(fundGuidItem); // This is the GUID of the field being updated in the document library
fundInformation.Value = "1";
CopySharepointService.FieldInformation[] info = { dateInformation, fundInformation };
CopySharepointService.CopyResult[] result;
CopySharepointService.CopySoapClient CopyService2007 = new CopySoapClient("CopySoap");
CopyService2007.ClientCredentials.Windows.ClientCredential = CredentialCache.DefaultNetworkCredentials;
CopyService2007.CopyIntoItems(destinationUrl, destinationUrls, info, fileData, out result);
Il documento è caricato con successo, ma il campo di ricerca non viene aggiornato
Qualcuno può aiutarmi?
Avete un link ad un esempio, forse? – mydoghasworms