更新SharePoint 2010的託管元數據字段我嘗試使用Lists.UpdateListItems Web服務更新SharePoint託管元數據(MMD)字段,但它不起作用。無法使用Lists.UpdateListItems Web服務調用
這裏是我的SOAP請求
<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<UpdateListItems xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<listName>My Test List</listName>
<updates>
<Batch ListVersion="0" PreCalc="TRUE" OnError="Continue">
<Method Cmd="Update" ID="1">
<Field Name="ID">3</Field>
<Field Name="Document_x0020_Title">foo</Field>
<Field Name="Fiscal_x0020_Year1">13;#FY 2006|7e8205da-57a1-45a3-8147-469b795ad6e8</Field>
</Method>
</Batch>
</updates>
</UpdateListItems>
</S:Body></S:Envelope>
此請求將成功地更新了「文檔標題」(文本字段),但MMD現場,「會計年度」,是不變,並沒有從返回任何錯誤Web服務。
請注意,MMD的值格式爲「WssId; #TermValue | TermGuid」,並且該術語已爲該站點創建。
請幫忙。
而當你設置字段 - 你可以完全省略Wssid部分。像「2006財年| 7e8205da-57a1-45a3-8147-469b795ad6e8」 – 2015-05-29 04:28:14