扩展和过滤MS Graph API无效 [英] Expanding and Filtering MS Graph API Does Not Work
问题描述
我需要获取与特定event
关联的用户邮箱中的eventMessage
.
I need to get an eventMessage
from a user's mailbox that is associated with a specific event
.
我有活动的iCalUId
,但我无法对其进行过滤:
I have the event's iCalUId
but I am unable to filter on it:
/users/${roomEmailAddress}/messages
?$expand=microsoft.graph.eventMessage/event($filter=iCalUId eq '${iCalUId}')
我想做的是获取所有消息,然后展开以查看与每个消息相关的事件,然后过滤每个事件以查找我关心的事件.
What I am trying to do is get all messages, then expand so that I see the events associated with each message, then filter each event to find the one I care about.
但是,我收到所有事件的响应,并且过滤机制不起作用.
However, I get a response with all events and the filtering mechanism is not working.
我要去哪里错了?
推荐答案
图形不支持在$expand
中包含$filter
.从文档:
Graph doesn't support including a $filter
in the $expand
. From the documentation:
$expand
:
- 不支持
nextLink
- 不支持超过1级的扩展
- 不支持额外的参数(
$filter
,$select
)
- No support for
nextLink
- No support for more than 1 level of expand
- No support with extra parameters (
$filter
,$select
)
您可以做的是利用),然后找到$expand
事件:
What you can do is leverage the $search
parameter to parameter to find all of the event messages ($search="kind:meetings
) and then $expand
the associated event:
/me/messages?$search="kind:meetings"&$expand=microsoft.graph.eventMessage/event
这篇关于扩展和过滤MS Graph API无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!