【问题标题】:Microsoft Graph Filter shared OneDrive filesMicrosoft Graph 筛选共享的 OneDrive 文件
【发布时间】:2016-11-08 04:22:18
【问题描述】:

基于图表filtering docs,我一直在尝试实现下面的调用。我认为我的语法可能会关闭,因为没有应用过滤器:(,有什么建议吗?

尝试使用显示名称如“John Doe”的复杂实体类型。

https://graph.microsoft.com/v1.0/me/drive/sharedWithMe?$filter=remoteItem/createdBy/user/displayName eq '{DISPLAY_NAME}'

【问题讨论】:

  • 能否提供回复信息?
  • 我无法提供尺寸。响应消息与我只使用 https://graph.microsoft.com/v1.0/me/drive/sharedWithMe 没有包含过滤器一样。

标签: rest onedrive microsoft-graph-api


【解决方案1】:

SharedWithMe 不是资源。它是一个函数,我认为您不能对函数的结果应用过滤器(我对此答案的信心约为 60%)。

<Function Name="sharedWithMe" IsBound="true">
    <Parameter Name="bindingParameter" Type="microsoft.graph.drive" Nullable="false"/>
    <ReturnType Type="Collection(microsoft.graph.driveItem)" Nullable="false"/>
</Function>

您需要执行客户端过滤。

【讨论】:

  • 你能像Collection(microsoft.graph.driveItem)这样对集合应用过滤器吗?
  • 还有计划支持将来在函数返回上应用过滤器吗?
  • 对此的更好过滤支持正在积压中。如果您认为这很重要,请考虑将其添加到我们的UserVoice page
猜你喜欢
  • 1970-01-01
  • 2022-06-22
  • 1970-01-01
  • 1970-01-01
  • 2019-03-02
  • 1970-01-01
  • 1970-01-01
  • 2020-08-25
  • 1970-01-01
相关资源
最近更新 更多