简体   繁体   English

如何使用 Office 365 API 按类别查找电子邮件?

[英]How to find email messages by categories using the Office 365 API?

I am using the REST API for Office 365 and want to be able to find messages based on categories assigned to them.我正在使用适用于 Office 365 的 REST API,并且希望能够根据分配给它们的类别来查找消息。

There is a Categories property , but it is a collection, and I can't figure out how to use it in the $filter parameter.有一个Categories 属性,但它是一个集合,我不知道如何在 $filter 参数中使用它。

I want a URL such as this, although I know parts of this are fictional:我想要一个这样的 URL,尽管我知道其中的一部分是虚构的:

https://outlook.office365.com/api/v1.0/me/messages?$filter=IsRead eq false and Categories contains 'Blue Category'&$select=Subject,Sender,DateTimeReceived,DateTimeLastModified,Categories

Is this possible?这可能吗?

This isn't currently possible, unfortunately.不幸的是,这目前是不可能的。 We're working to add more features to the APIs, so stay tuned!我们正在努力为 API 添加更多功能,敬请期待!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM