SharePoint / getchanges REST API [英] 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屋!