【问题标题】:Microsoft Graph nextLink in SharePoint subsite listsSharePoint 子网站列表中的 Microsoft Graph nextLink
【发布时间】:2018-04-03 15:00:20
【问题描述】:

在 SharePoint Online 中,我的根网站集下有一个名为“subsite_a”的子网站。这个子站点有一个包含大约 50 项的通用列表。当我查询前十项时:

https://graph.microsoft.com/v1.0/sites/root:/subsite_a:/lists/d383fe85-83e3-448d-afc8-cc42ee9de535/items?top=10

我得到一个看起来像这样的@odata.nextLink 属性:

{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#sites('root')/microsoft.graph.getByPath/lists('d383fe85-83e3-448d-afc8-cc42ee9de535')/items",
"@odata.nextLink": "https://graph.microsoft.com/v1.0/sites/root/getByPath(path='pathValue')/lists/d383fe85-83e3-448d-afc8-cc42ee9de535/items?top=10&$skiptoken=UGFnZWQ9VFJVRSZwX0lEPTEw",
"value": [{ ... }]
}

当我使用 nextLink 时,我收到一个错误“请求格式错误或不正确。”

对我来说,nextLink 看起来很畸形。我希望使用额外的 skipToken 进行相同的 api 调用。

nextLink 的格式是否正确?

旁注:当列表直接位于根站点下时,nextLink 看起来和工作正常

【问题讨论】:

    标签: office365 microsoft-graph-api


    【解决方案1】:

    我刚刚从 nextLink 添加到第一个 URL GET 查询“跳过”部分。 结果 nextLink 应该是这样的:

    https://graph.microsoft.com/v1.0/sites/root:/subsite_a:/lists/d383fe85-83e3-448d-afc8-cc42ee9de535/items?top=10&$skiptoken=UGFnZWQ9VFJVRSZwX0lEPTEw
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-16
      • 1970-01-01
      • 1970-01-01
      • 2020-10-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多