【问题标题】:Get EventMessage Associated with Event in MS Graph API获取与 MS Graph API 中的事件关联的 EventMessage
【发布时间】:2019-12-06 06:14:49
【问题描述】:

我正在创建一项服务,该服务需要在满足某些条件时从房间的角度在与会者的日历上更新活动。

虽然declining the meeting 很简单,但我正在努力更新用户日历上的事件。我假设我会使用update eventMessage 来执行此操作。

现在我有被拒绝事件的 ID,我需要将该事件与其 eventMessage 相关联。因此,我提出以下要求:

`/users/${roomEmail}/messages?$expand=microsoft.graph.eventMessage/event($select=id;$filter=id eq ${meetingId})`

我要做的是获取所有消息,然后展开以便我看到与每条消息关联的事件,然后按其 ID 过滤每个事件,直到找到我关心的事件。一旦我有了那个事件,我就可以向它的 eventMessage 发送更新。

但是,我收到错误 "Parsing Select and Expand failed."

我哪里错了?

【问题讨论】:

    标签: microsoft-graph-api microsoft-graph-mail microsoft-graph-calendar


    【解决方案1】:

    由于id不是数值,相信你可能需要在最后的meetingID参数两边加上单引号。

    `/users/${roomEmail}/messages?$expand=microsoft.graph.eventMessage/event($select=id;$filter=id eq '${meetingId})'`
    

    https://docs.microsoft.com/en-us/dynamics-nav/using-filter-expressions-in-odata-uris#referencing-different-data-types-in-filter-expressions

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-11-23
    • 1970-01-01
    相关资源
    最近更新 更多