检索日历详细信息时,无法扩展singleValueExtendedProperty

时间:2020-08-18 08:30:10

标签: microsoft-graph-api office-js outlook-web-addins microsoft-graph-calendar

我正在尝试使用Outlook REST API(2.0版)来检索事件的自定义属性值。该自定义属性是由Outlook Office.js加载项创建的。

这是要求:

/v2.0/me/calendar/?$expand=singleValueExtendedProperties($filter=PropertyId eq 'Binary 0x0FFF')

这将返回来自API的成功响应,但不会返回singleValueExtendedProperty。

1 个答案:

答案 0 :(得分:1)

要获取自定义属性,您将需要一个(REST)项目标识符,并且自定义属性仅适用于消息和事件。

下面分别是消息和事件的模板。

/me/messages/''?$expand=SingleValueExtendedProperties($filter=PropertyId eq 'String {00020329-0000-0000-c000-000000000046} Name cecp- ')

/me/events/ '?$expand=SingleValueExtendedProperties($filter=PropertyId eq 'String {00020329-0000-0000-c000-000000000046} Name cecp- ')