我正在尝试通过 Microsoft Graph 从 SharePoint 获取列表项的集合,我想按 CreatedBy 进行筛选。请求:https://graph.microsoft.com/v1.0/sites/{siteid}/lists/TeamRequests/items
返回:
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#sites('{url}')/lists('TeamRequests')/items",
"value": [
{
"@odata.etag": "\"56ad787e-bd69-464a-b5da-dd953e40d7c4,13\"",
"createdDateTime": "2018-02-26T08:34:26Z",
"eTag": "\"56ad787e-bd69-464a-b5da-dd953e40d7c4,13\"",
"id": "11",
"lastModifiedDateTime": "2018-03-22T13:20:03Z",
"webUrl": "{url}/Lists/TeamRequests/11_.000",
"createdBy": {
"user": {
"email": "{email}",
"id": "9c9cbb67-c049-4a2d-845d-6c5ca2300041",
"displayName": "{Name}"
}
},
"lastModifiedBy": {
"user": {
"email": "{email}",
"id": "9c9cbb67-c049-4a2d-845d-6c5ca2300041",
"displayName": "{Name}"
}
},
"parentReference": {},
"contentType": {
"id": "0x01005F15F8133495554D834FF82F187AD0630002133A9CCDE4494D8CB2206D7D6453D6"
}
},
Run Code Online (Sandbox Code Playgroud)
现在我想过滤此请求以查找 createBy(ID、displayName 或电子邮件地址)。我尝试了?$filter=createdBy/user/email eq '{email}'
类似的 id 或 displayName 请求。他们都回来了
{
"error": {
"code": "generalException",
"message": "An unspecified error …
Run Code Online (Sandbox Code Playgroud) 我正在使用Azure Logic应用程序通过操作调出Microsoft Graph API HTTP - HTTP
。对于此API,我需要使用以下主体执行POST请求:
{
"@odata.id": "<guid>"
}
Run Code Online (Sandbox Code Playgroud)
当我尝试保存逻辑应用程序时,此错误显示:
Failed to save logic app <redacted>. The template validation failed: 'The template action '<redacted>' at line '1' and column '144589' is not valid: "Unable to parse template language expression 'odata.id': expected token 'LeftParenthesis' and actual 'Dot'.".'.
Run Code Online (Sandbox Code Playgroud)
如何在JSON有效负载中使用此属性?