[英]How to apply time and isRead both filter in receive mail graph API
I've use this https://graph.microsoft.com/v1.0/me/messages?filter=(receivedDateTime gt 2023-01-24T10:47:27.168Z)&isRead+ne+true
and this API return based only date filter not based on both.我使用了这个https://graph.microsoft.com/v1.0/me/messages?filter=(receivedDateTime gt 2023-01-24T10:47:27.168Z)&isRead+ne+true
和这个 API 返回值日期过滤器不基于两者。
I want to get mail bt applying both filter[Date and isRead]我想同时应用过滤器 [Date 和 isRead] 获取邮件 bt
Use and
conditional operator in $filter
query to define the second condition.在$filter
查询中使用and
条件运算符来定义第二个条件。
https://graph.microsoft.com/v1.0/me/messages?filter=receivedDateTime gt 2023-01-20T10:47:27.168Z and isRead ne true
I do agree with @user2250152, you can also use not
operator with eq
operator:我同意@user2250152,您也可以将not
运算符与eq
运算符一起使用:
https://graph.microsoft.com/v1.0/me/messages?filter=receivedDateTime gt 2023-01-20T10:47:27.168Z and not(isRead eq true)
References taken from:参考资料取自:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.