首页 > 解决方案 > 检索日历详细信息时扩展 singleValueExtendedProperty 不起作用

问题描述

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

这是请求:

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

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

标签: microsoft-graph-apioffice-jsoutlook-web-addinsmicrosoft-graph-calendar

解决方案


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

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

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

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


推荐阅读