开发者

Delete Document from SharePoint Document list, using Lists.asmx, just by ID

开发者 https://www.devze.com 2023-03-09 01:16 出处:网络
I am开发者_开发知识库 looking for a solution to just a pass a Item Id to delete the documents, without passing FileRef parameter.

I am开发者_开发知识库 looking for a solution to just a pass a Item Id to delete the documents, without passing FileRef parameter.

will appreciate any help?

Thanx


UpdateListItems will do what you want:
http://msdn.microsoft.com/en-us/library/lists.lists.updatelistitems(v=office.12).aspx
For the xml block you will want something like this to delete item id=1234:

<Batch OnError="Continue" ListVersion="1" >
<Method ID="1" Cmd="Delete">
  <Field Name="ID">1234<Field>
</Method>
</Batch>
0

精彩评论

暂无评论...
验证码 换一张
取 消