在使用Microsoft Graph在Sharepoint中搜索文档表单站点页面方面需要帮助 [英] Need help on searching a document form Sitepage in Sharepoint using Microsoft Graph

查看:98
本文介绍了在使用Microsoft Graph在Sharepoint中搜索文档表单站点页面方面需要帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发SharePoint集成,在那里我可以使用Microsoft Graph Explorer成功地使用驱动器ID进行站点搜索.

I am working on SharePoint Integration where i am able to success using Microsoft Graph Explorer for a Site search using Drive id.

这是我能够搜索单个站点的方式:

Here is how i am able search for a Single Site:

https://graph.microsoft.com/v1.0/drives/b!I9A-JY94D0CQp-2TBvsUupBLMUF2SrJHp5VylC7DY8DpCdF-7uQ6NTp6t-MRD8/root/search(q='sharepoint')

通过此操作,我可以获取记录"Sharepoint"的详细信息.

With this i am able to get the details of the record 'Sharepoint'.

现在,我正在尝试在添加了文档的SitePage中进行搜索.谁能帮我在Graph Explorer中使用的api以获得正确的结果

Now i am trying to search in SitePage where we have Documents added. Can anyone please help me the api to be used in Graph Explorer to get the correct result

我可以使用

https://graph.microsoft.com/beta/sites/root/pages?$filter=name eq 'DevHome.aspx'

推荐答案

您的方法不正确. 如果必须搜索添加到网站"页面的文档库的内容,则需要查询文档库而不是网站"页面. 使用Graph API,您将无法在网站页面中搜索内容.

Your Approach is incorrect. If you have to search the content of the document library added to a Site page, you need to query the doc library not the Site page. Using Graph API you will not be able to search the content in the site page.

这篇关于在使用Microsoft Graph在Sharepoint中搜索文档表单站点页面方面需要帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆