Microsoft Graph API SharePoint search



我一直在尝试通过我的SharePoint网站进行搜索。我能够获得一个驱动器的结果:

xxx.sharepoint.com,xxxxxx-xxxx-xxxx-xxxx-xxxxxx,xxxxx-xxxx-xxxx-xxxx-xxxxxx/drives/xxxxxxxxx/search(q='{content}')

但是,如果我在drive/root上进行相同的搜索,我不会得到任何结果:

xxx.sharepoint.com,xxxxxx-xxxx-xxxx-xxxx-xxxxxx,xxxxx-xxxx-xxxx-xxxx-xxxxxx/drive/root/search(q='{content}')

我们基本上想在整个子站点上执行搜索。

嘿,有点晚了,但是我刚刚发现您可以使用/站点端点来通过扩展图对象的关系来检索站点中的所有项目。您可以尝试使用:

https://graph.microsoft.com/v1.0/sites/root/sites?qunexpand=lists($ explive = items)

这似乎返回根网站下所有子站点中的所有列表项目。希望您应该能够通过子网,列表,现场值等进一步过滤。

最新更新