"The expression "字段(选择\ " is not valid."



使用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(。$前缀对于v1是强制性的。

尝试在嵌套的select中用%3D替换=。似乎图形资源管理器不喜欢括号中的裸=。尝试获取singleValueExtendedProperties 时接收400和500

相关内容

最新更新