【问题标题】:Microsft Graph: Unable to expand ListItem for a drive item when using Delta QueryMicrosoft Graph:使用 Delta Query 时无法展开驱动器项的列表项
【发布时间】:2021-05-14 20:34:51
【问题描述】:

通过增量查询访问 SharePoint 站点文档库中的自定义列。我厌倦了下面的 API,并且收到错误 - [使用 expand 获取 listItem 时参数错误]。

GET /sites/{siteId}/drive/root/delta?expand=listItem

但是根据this document,delta查询应该支持Optional查询参数。

上述方法或其他方式获取增量查询中的listItem是否有错误?

【问题讨论】:

  • 使用items 而不是listItems。使用此查询https://graph.microsoft.com/v1.0/sites/{siteid}/drive/root/delta?expand=items
  • 让我知道它是否适合你
  • 感谢您的回复,Shiva Keshav Varma。我试过了,但响应与我在没有展开查询时得到的响应相同。

标签: sharepoint azure-active-directory microsoft-graph-api sharepoint-online


【解决方案1】:

您可以尝试使用$select 子句代替$expand 吗?

GET /sites/{siteId}/drive/root/delta?$select=listItem

它应该包括对listItem的更改

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2022-11-09
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-03-31
相关资源
最近更新 更多