使用测试版请求Outlook REST API时。我检索这种类型的消息,类型为IPM.Activity。在抓取用户的邮箱并仅检索IPM.Note条消息时,是否可以忽略所有这些项目?
{
"@odata.id": "https://outlook.office365.com/api/beta/Users('458f8df4-4dd6-4b3e-af2e-c37008e81fb3@e2dde5e3-0421-4c8d-a73b-3b3d8c731602')/Messages('AAMkAGFjNWFjMTY1LTdkYzEtNDZlMy1iOWZkLTczNTg5ZTE3NzFjNwBGAAAAAAAFG5if3a7zSbz0iP-P_sW0BwAULJVV6lbSRpmW2SjukgVkAAAAAAENAAAULJVV6lbSRpmW2SjukgVkAAA4xRzIAAA=')",
"@odata.etag": "W/\"CQAAABYAAAAULJVV6lbSRpmW2SjukgVkAAB+g4Fs\"",
"Id": "AAMkAGFjNWFjMTY1LTdkYzEtNDZlMy1iOWZkLTczNTg5ZTE3NzFjNwBGAAAAAAAFG5if3a7zSbz0iP-P_sW0BwAULJVV6lbSRpmW2SjukgVkAAAAAAENAAAULJVV6lbSRpmW2SjukgVkAAA4xRzIAAA=",
"CreatedDateTime": "2014-12-17T18:09:24Z",
"ReceivedDateTime": null,
"SentDateTime": null,
"HasAttachments": false,
"Subject": "IPM.Activity",
"Body": {
"ContentType": "Text",
"Content": ""
},
"BodyPreview": "",
"Importance": "Normal",
"Sender": null,
"From": null,
"ToRecipients": [],
"CcRecipients": [],
"BccRecipients": [],
"ConversationId": "AAQkAGFjNWFjMTY1LTdkYzEtNDZlMy1iOWZkLTczNTg5ZTE3NzFjNwAQAAKGuN8bc5hFm_1mdu582UM=" }
答案 0 :(得分:-2)
是的,您可以通过在查询中添加$ filter来实现此目的。 以下是对MS图形api支持的查询的引用: