【问题标题】:Search OneDrive files by title only with Microsoft Graph APIs仅使用 Microsoft Graph API 按标题搜索 OneDrive 文件
【发布时间】:2016-09-19 18:45:20
【问题描述】:

以下代码使用 Microsoft Graph API 搜索 OneDrive。

List<DriveItem> items = graphServiceClient
    .getMe()
    .getDrive()
    .getRoot()
    .getSearch("abc")
    .buildRequest()
    .get().getCurrentPage();

此代码返回与标题匹配的所有文件和文件夹(也可能根据文档的内容)“abc”。

如何限制搜索结果只获取与标题“abc”匹配的文件?

编辑

请在-

上投票支持此功能请求

https://officespdev.uservoice.com/forums/224641-feature-requests-and-feedback/suggestions/16855591-microsoft-graph-api-search-onedrive-files-by-titl

【问题讨论】:

  • 为什么这个功能请求被删除了?
  • 我没有这样做。不知道;这是一个不错的功能。

标签: java android microsoft-graph-api onedrive


【解决方案1】:

目前没有办法将搜索目标限制为仅标题。此时,您需要对结果执行客户端过滤。请在Office Developer Platform UserVoice 页面打开功能请求。从此帖子链接到它,以便其他人可以找到并投票。

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-02-25
  • 1970-01-01
  • 2018-05-24
  • 1970-01-01
  • 2021-04-27
  • 1970-01-01
相关资源
最近更新 更多