首页 文章

从Microsoft Graph获取Outlook电子邮件类别

提问于
浏览
0

我想仅从Microsoft Graph / Outlook endpoints 获取属于电子邮件的特定类别 . 但是给了我相关电子邮件中存在的所有类别 .

[https://graph.microsoft.com/beta/me/outlook/masterCategories/?$ filter = displayName eq 'Red category']

上面的链接是我对Microsoft Graph API的查询,我得到以下结果 { "@odata.context": "https://graph.microsoft.com/beta/$metadata#users('1e69674d-b0b3-404e-ae2d-a758569ce83c')/outlook/masterCategories", "value": [ { "id": "347a7dcc-6c61-4c93-85a5-eb75f973a77f", "displayName": "Red category", "color": "preset0" }, { "id": "643d45c3-aecb-4fbb-8254-c2520f01cf20", "displayName": "Orange category", "color": "preset1" }, { "id": "d06a692a-9406-4052-9b1e-bc7ae293a4e4", "displayName": "Yellow category", "color": "preset3" }, { "id": "8c3e842d-427f-4480-8459-e3e4e785fa85", "displayName": "Green category", "color": "preset4" }, { "id": "11502440-1912-4de1-afad-c2209178219d", "displayName": "Blue category", "color": "preset7" }, { "id": "f3f1b1ca-b319-4951-9eeb-954a169e3d71", "displayName": "Purple category", "color": "preset8" }, { "id": "1fc2506b-2676-447c-bfa3-44a3a7a2dc2d", "displayName": "Important", "color": "preset14" }, { "id": "8926f11d-23ba-4804-ace7-8ae349f390a6", "displayName": "Caution", "color": "preset16" }, { "id": "60434e45-effa-40d7-b753-705d59ef3440", "displayName": "Star", "color": "preset2" } ] }

有什么方法可以通过displayName等属性过滤类别?

2 回答

相关问题