如何通过CSOM删除项目,但使用“标题"找到该项目然后将其删除 [英] How to delete items via CSOM, but use the Title to find the item and then delete it

查看:77
本文介绍了如何通过CSOM删除项目,但使用“标题"找到该项目然后将其删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个SP DocLib和一个列表.在Doclib中创建一个项目时,它将在列表中创建一个条目,其中包含Title和DocLib中的参考ID.

I have one SP DocLib and a List. When an item is created in the Doclib, it will create an entry in the list with the Title and the reference ID from the DocLib.

我试图通过itemID和列表中的删除DocLib中的项目,并希望通过引用ID进行查找并一步将其删除.删除DocLib可以,但是不能在列表中使用,因为我只能通过参考ID找到正确的项目 而不是通过商品ID.

I tried to delete the item in den DocLib via itemID and in the list and would like to find it via reference ID and delete it in one step. The deletion int the DocLib works, but not in the List, because I only can find the right item via the reference ID and not via item ID.

我想使用CSOM或Rest.

I would like to use CSOM or Rest.

我希望你能帮助我!

最诚挚的问候

Matthias

推荐答案

您可以使用任一代码

https://stackoverflow .com/questions/31452356/sharepoint-2013-clientcontext-how-to-delete-specific-list-items-by-multiple-co


这篇关于如何通过CSOM删除项目,但使用“标题"找到该项目然后将其删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆