Sharepoint / GetChanges Rest API:如果删除了其父站点,则更改日志不会给列表删除事件 [英] Sharepoint / GetChanges Rest API: Change log does not give list deleted event if its parent site is deleted

查看:55
本文介绍了Sharepoint / GetChanges Rest API:如果删除了其父站点,则更改日志不会给列表删除事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想获取从sharepoint中删除的所有列表。 
$


当我删除网站时在更改日志中显示已删除的网站事件,但它不会提供与此网站相关联的
列表并被删除。



因此,一般来说,观察是在删除父元素时,更改日志中只有一个已删除事件的条目,而所有已删除的子元素与其中没有相应的条目。





Sharepoint Rest API:GetChanges



URL:

I want to get all the lists that are deleted from sharepoint. 

When I delete a Site it shows the deleted site event in change log but it does not give the Lists that were associated with this site and got deleted.

So, in general the observation is that on deleting a parent element there is only one entry of deleted event in the change log whereas all the child elements that got deleted along with it does not have there respective entries.


Sharepoint Rest API: GetChanges

URL:

https://<my_sharepoint_site>/_api/site/getchanges



帖子正文:


Post body:

{"query":{"__metadata":{"type":"SP.ChangeQuery"},"Web":true, "List":true, "Item":true, "DeleteObject":true}





这适用于所有分层元素,即列表,项目,文件夹和文件。



我的应用程序完全依赖于sharepoint Rest API。



有没有办法获取因删除父元素而被删除的子元素的详细信息。



任何有关这方面的指导都非常有帮助。

提前致谢



This holds true for all the hierarchical elements i.e Lists, Items, Folders and Files.

My application completely relies on sharepoint Rest APIs.

Is there a way to get the details of child elements that got deleted due to deletion of parent element.

Any guidance on this would be really helpful.
Thanks in advance

BrajMohan

BrajMohan

推荐答案

有关getchanges API中子项的详细信息将依赖于父站点,api将调用/ _api / site,因此如果删除此父站点,则子项也将被删除,我们无法获取子项更改详细信息,因为父网站
已被删除。这是预期的行为。

The details about child items in getchanges API will rely on the parent site, the api will call /_api/site, so if this parent site is deleted, then the child item will also be deleted and we could not get the child item change details, as the parent site has been deleted. This is a expected behavior.

如果想要检查子项目的更改,则无法删除该站点。

If want to check the child items change, the site could not be deleted.

谢谢

最好的问候


这篇关于Sharepoint / GetChanges Rest API:如果删除了其父站点,则更改日志不会给列表删除事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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