SharePoint / getchanges REST API [英] SharePoint /getchanges REST API

查看:69
本文介绍了SharePoint / getchanges REST API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们要求从SharePoint网站中识别已删除的文件和文件夹。我们尝试按以下方式调用
/ getchanges API:

We have a requirement to identify deleted files and folders from a SharePoint site. We tried calling /getchanges API as below:


推荐答案

你好BrajMohan,

Hi BrajMohan,

这是设计上的,没有ChangeItem类的属性来识别项目当前是文件夹还是文件。

This is by design, there is not a property of the ChangeItem class identify the item is folder or a file currently.

https://msdn.microsoft.com/en-us/library/microsoft .sharepoint.client.changeitem_members.aspx

https://msdn.microsoft.com/en-us/library/office/jj246138.aspx

如果您想获取已删除的项目,作为解决方法,您可以使用JSOM或CSOM从回收站中获取项目。

If you want to get deleted items, as a workaround, you can items from recycle bin using JSOM or CSOM.

https://msdn.microsoft.com/en-us/library/office/jj245382.aspx?f=255&MSPPError=-2147217396

最诚挚的问候,

Dennis < a href ="https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.changeitem_members.aspx">

Dennis


这篇关于SharePoint / getchanges REST API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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