【问题标题】:Drive entity no longer returns a driveType attributeDrive 实体不再返回 driveType 属性
【发布时间】:2017-11-16 17:04:04
【问题描述】:

我正在观察 Microsoft Graph 中的功能变化。从 SharePoint 网站请求 drives 列表时,我曾经看到 driveItem 属性在 11 月 14 日似乎不再存在。

site documentation 提到了与drives 集合的关系。

drive documentationdriveType 属性描述为:

描述此资源所代表的驱动器类型。 OneDrive 个人驱动器将返回personal。 OneDrive for Business 将返回 business。 SharePoint 文档库将返回 documentLibrary。只读。

这是一个示例调用:

https://graph.microsoft.com/v1.0/sites/{site-id}/drives

回复:

client-request-id →d822c749-baf6-4857-abd9-6d80f70823d9
request-id →d822c749-baf6-4857-abd9-6d80f70823d9
x-ms-ags-diagnostic →{"ServerInfo":{"DataCenter":"EastUS","Slice":"SliceB","Ring":"NA","ScaleUnit":"003","Host":"AGSFE_IN_28","ADSiteName":"EST"}}

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#drives",
    "value": [
        {
            "createdBy": {
                "user": {
                    "displayName": "System Account"
                }
            },
            "createdDateTime": "2015-05-22T17:21:01Z",
            "description": "This system library was created by the PointPublishing feature to store application pages.",
            "id": "b!a4YqXM4QKkOPmOj73xfdss5bbYPr7MlFlXKVhtK0Dpjf4OJPyoBFQo2-YK5095t1",
            "lastModifiedDateTime": "2015-05-22T17:21:03Z",
            "name": "AppPages",
            "webUrl": "https://mysharepoint.sharepoint.com/portals/hub/AppPages",
            "quota": {
                "deleted": 0,
                "remaining": 0,
                "total": 0,
                "used": 0
            }
        }
      <snipped a few values>
    ]
}

我在这里看到的功能变化是有意设计的还是无意的?

编辑:尝试调用时:

https://graph.microsoft.com/v1.0/sites/root/drives?$select=id,driveType,Name

driveType 被返回

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#drives(id,driveType,name)",
    "value": [
        {
            "id": "fakeId",
            "name": "Documents",
            "driveType": "documentLibrary"
        }
    ]
}

当为基于site-id (/sites/{site-id}/drives) 的网站请求drives 时,我们会看到返回的不同属性。

【问题讨论】:

  • 我看到 driveType 属性返回正确。你能检查/v1.0/sites/root/drives?$select=id,driveType,Name 并发布这些结果吗?
  • @MarcLaFleur :我添加了上面的查询,它仍然没有返回驱动器类型。 { "@odata.context": "graph.microsoft.com/v1.0/$metadata#drives(id,driveType,name)", "value": [ { "id": "b!a4YqXM4QKkOPmOj73xfdss5bbYPr7MlFlXKVhtK0Dpjf4OJPyoBFQo2-YK5095t1", "name": "AppPages" } } }
  • 我没有看到结果。你确定你保存了你的编辑吗? (请注意,我的 URI 与您最初发布的 URI 相同)
  • @MarcLaFleur - 我错过了不同的 URI。编辑了原始帖子以包含这些结果。
  • 这是一个回归,我们正在推动修复。

标签: microsoft-graph-api onedrive


【解决方案1】:

只是关闭这个循环。正如布拉德所说,已经发现了一个问题。修复程序目前正在筹备中,应该很快就会推出。

【讨论】:

    猜你喜欢
    • 2018-12-28
    • 1970-01-01
    • 1970-01-01
    • 2020-12-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-28
    • 2016-02-12
    相关资源
    最近更新 更多