Microsoft graph api &引用;表达式\";字段(选择“无效”;

Microsoft graph api &引用;表达式\";字段(选择“无效”;,microsoft-graph-api,Microsoft Graph Api,使用Graph Explorer,以下调用可以正常工作 https://graph.microsoft.com/v1.0/sites/contoso.sharepoint.com,964f1605-0c35-4e79-bc57-cd76f7a2ff7d,4e13a384-18bc-49c0-8f21-1a3f15c4dc63/lists/d136b6b0-69a3-4f58-9ec2-3056e149b86f/items?expand=fields 但是,当使用下面的select进行呼叫时,会

使用Graph Explorer,以下调用可以正常工作

https://graph.microsoft.com/v1.0/sites/contoso.sharepoint.com,964f1605-0c35-4e79-bc57-cd76f7a2ff7d,4e13a384-18bc-49c0-8f21-1a3f15c4dc63/lists/d136b6b0-69a3-4f58-9ec2-3056e149b86f/items?expand=fields
但是,当使用下面的select进行呼叫时,会失败

https://graph.microsoft.com/v1.0/sites/contoso.sharepoint.com,964f1605-0c35-4e79-bc57-cd76f7a2ff7d,4e13a384-18bc-49c0-8f21-1a3f15c4dc63/lists/d136b6b0-69a3-4f58-9ec2-3056e149b86f/items?expand=fields(select=id)
它返回:

"error": {
    "code": "-1, Microsoft.SharePoint.Client.InvalidClientQueryException",
    "message": "The expression \"fields(select\" is not valid.",
    "innerError": {
        "request-id": "eda74444-8c72-1111-90ea-26797ce181be",
        "date": "2020-03-18T11:11:11"
    }
}

请求有什么问题?

使用$expand=fields($select=id)。尝试将嵌套的select中的=替换为%3D。似乎图形资源管理器不喜欢括号中的裸=。

第二个请求在图形资源管理器预览时失败。它与非预览图形资源管理器一起工作。当使用“$expand=fields($select=id)”时,我得到“”代码“:”BadRequest“,”消息“:”解析OData选择和扩展失败:发现一个不平衡的括号表达式。“@OferGal请为失败的请求提供请求或相关id和时间戳。信息列表“)/items?Expand=fields($Select=id)返回“错误”:{“代码”:”-1、Microsoft.SharePoint.Client.InvalidClientQueryException、“消息”:“表达式”字段($select“无效”),“内部错误”:{“日期”:“2020-07-14T22:08:48”,“请求id”:“2cc746f3-e576-4a6c-a7bd-bfdfea184441”}