问题描述
我正在尝试使用Microsoft图形邮件API使用in运算符查询少量电子邮件,但是找不到示例.
I'm trying to use the microsoft graph mail api to query for a small amount of emails using the in operator but cannot find an example.
这是我尝试使用的方式: https://graph.microsoft.com/v1.0/me/messages?$filter=(来自/电子邮件地址/地址)在'[email protected],[email protected]'
This is how I am trying to use it:https://graph.microsoft.com/v1.0/me/messages?$filter=(from/emailAddress/address) in '[email protected], [email protected]'
在他们的文档中,它说您可以在$ filter中使用in运算符.
In their documentation, it says that you can use the in operator for $filter.
推荐答案
我不反对其他答案,如果有人在寻找IN运算符用法格式,我就只留下这段代码:
I am not opposing other answers, I am just leaving this snippet if anyone was looking for IN operator usage format:
$filter=displayName in ('group-1', 'group-2')
编码后的完整网址示例:
Full url example after encoding:
https://graph.microsoft.com/v1.0/groups?$filter=displayName%20in%20%28%27group-1%27%2C%20%27group-2%27%29
这篇关于如何在Microsoft Graph Mail API上对$ filter使用'in'运算符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!