Microsoft Graph API共享 /驱动器过滤删除的文件

发布于 2025-01-31 08:19:54 字数 273 浏览 5 评论 0 原文

我正在使用图形API从SharePoint获取文件。 不知何故,我在响应中删除了已删除的文件,而没有任何可以过滤的标志。

我的意思是,我不想看到回收箱中的文件。

有过滤器还是类似的东西?

'https://graph.microsoft.com/v1.0/shares/u!sss/root?expand=Children'; 或者 'https://graph.microsoft.com/v1.0/drives/b!xxx/root:/dokumente/xxx/children';

I am using the Graph API to get Files from Sharepoint.
Somehow I get deleted files in the response without any flag where i can filter.

I mean, i do not want to see files that are in the Recycle bin.

Is there a filter or something similar?

'https://graph.microsoft.com/v1.0/shares/u!sss/root?expand=children';
or
'https://graph.microsoft.com/v1.0/drives/b!xxx/root:/Dokumente/xxx/children';

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

北渚 2025-02-07 08:19:54

没有过滤器可过滤已删除的文件。对于列出已删除的文件/文件夹,您可以使用 delta查询,因为它使应用程序能够发现新创建,更新或删除的驱动器。

DELTA查询功能的初始请求(没有delta或skip令牌)将返回集合中存在的资源。项目的最后一页将包括@odata.deltalink 属性,该属性提供了以后可用于检索更改的URL,因为当前项目集。

端点:

GET /sites/{siteId}/drive/root/delta

There are no filters available to filter deleted files. For listing deleted files/folders, you can use delta query as it enables applications to discover newly created, updated, or deleted driveItems.

The initial request to the delta query function (no delta or skip token) will return the resources that currently exist in the collection. The final page of items will include the @odata.deltaLink property, which provides the URL that can be used later to retrieve changes since the current set of items.

Endpoint:

GET /sites/{siteId}/drive/root/delta
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文