2016-08-04 87 views
0

在SharePoint扩大缩略图试图让SharePoint搜索缩略图通过微软图形

这将返回正确的搜索结果:

https://graph.microsoft.com/v1.0/drives/{SHAREPOINT_DRIVE_ID}/root/search(q='{QUERY}') 

但这:

https://graph.microsoft.com/v1.0/drives/{SHAREPOINT_DRIVE_ID}/root/search(q='{QUERY}')?expand=thumbnails(select=large) 

返回:

{"error":{"code":"-1, Microsoft.SharePoint.Client.UnknownError","message":"Unknown Error","innerError":{"request-id":"69bc5cdf-0f4a-4d60-9c3c-513983dd8e0b","date":"2016-08-04T17:50:11"}}},"status":500,"statusText":"Internal Server Error"} 

documentation明确规定:This method supports the OData Query Parameters to help customize the response.

回答

2

根据测试,在expand行之有效的https://graph.microsoft.com/v1.0/me/drive/root?expand=thumbnails(select=large)

似乎Microsoft Graph搜索项API不支持展开缩略图。

如果您需要此功能,您可以提交here的反馈意见。

+0

该文档明确指出:'此方法支持OData查询参数以帮助自定义响应。': http://graph.microsoft.io/en-us/docs/api-reference/v1.0/api/item_search –

+0

搜索目前不允许您展开缩略图集合。看起来像一个小姐,因为缩略图可以更容易地向用户显示搜索结果。您仍然可以使用其他OData查询参数,例如$ select来形成响应。我会记录一个错误来更新文档,使其更加清晰。 –