首页 文章

SharePoint子网站列表中的Microsoft Graph nextLink

提问于
浏览
0

在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时出现错误"The request is malformed or incorrect."

对我来说,nextLink看起来很糟糕 . 我期望与另外的skipToken进行相同的api调用 .

nextLink的格式是否正确?

Side note :当列表直接位于根站点下时,nextLink的外观和工作正常

1 回答

  • 0

    我刚刚从nextLink添加到第一个URL GET查询“skip”部分 . 因此,nextLink应该像:

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

相关问题