简体   繁体   English

如何在接收邮件图中应用 time 和 isRead 这两个过滤器 API

[英]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.

相关问题 MS Graph API 过滤器 forceChangePasswordNextSignIn - MS Graph API filter on forceChangePasswordNextSignIn 在 Microsoft Azure 上筛选(搜索)(图)API - Filter (searching) on Microsoft Azure (graph) API 如何将“where”过滤器应用于 BigQuery 中的转换列? - How to apply 'where' filter to a transformed column in BigQuery? Microsoft Graph - 发送邮件 - Microsoft Graph - Send Mail 如何使用 python 根据特定时间范围过滤 API 响应数据 - How to filter API response data based on particular time range using python 将过滤器应用于 gcloud sql - apply filter to gcloud sql 如何在 aws api 网关后面接收文件上传? - How to receive file uploads behind aws api gateway? 当我尝试使用图表 API 发送邮件时收到 403 Forbidden - I got 403 Forbidden when I try to send Mail using graph API 如何同时为移动和桌面制作 Flutter Firebase 应用程序 - How to do a Flutter Firebase app for both Mobile and Desktop at the same time 如何使用 snapshotChanges() 方法获取键值和过滤数据? - How to use snapshotChanges() method to get both key value and filter the data?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM