我们试图使用Microsoft图形查询邮箱,并返回所有未分类的邮件。下面是OData规范:Toc453752358
我们应该能做这样的事情:
$filter=类别/$count eq 0
但是调用返回不支持的异常操作。是否有另一种查询未分类邮件的方法?
发布于 2020-02-18 11:19:46
此时似乎不支持查询没有类别的邮件。请向微软图形用户语音添加一个功能请求。我还不如分享一下我的发现,以防它对某人有用。
不幸的是,下面的不能运行
https://graph.microsoft.com/v1.0/me/mailFolders/inbox/messages?$filter=not categories/any()&$select=categories
https://graph.microsoft.com/v1.0/me/mailFolders/inbox/messages?$filter=categories/$count eq 0
这将返回包含类别的所有邮件。
https://graph.microsoft.com/v1.0/me/mailFolders/inbox/messages?$filter=categories/any()&$select=categories
这将返回特定类别的所有邮件。
https://graph.microsoft.com/v1.0/me/mailFolders/inbox/messages?$filter=categories/any(x:x eq 'particular category')&$select=categories
https://stackoverflow.com/questions/60186114
复制