microsoft-graph-api - 检索日历详细信息时扩展 singleValueExtendedProperty 不起作用
问题描述
我正在尝试使用 Outlook REST API(2.0 版)检索事件的自定义属性值。自定义属性由 Outlook Office.js 加载项创建。
这是请求:
/v2.0/me/calendar/?$expand=singleValueExtendedProperties($filter=PropertyId eq 'Binary 0x0FFF')
这将返回来自 API 的成功响应,但不返回 singleValueExtendedProperty。
解决方案
要获取自定义属性,您需要一个 (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>')
推荐阅读
- git - 允许访问 gitlab.com
- python - 在 N x 4 数组中查找最常见的一系列数字
- powershell - powershell中的[TYPE]是什么意思
- ios - 在多行文本末尾附加按钮
- node.js - 在asp net mvc里面使用node js
- node.js - 图数据库中的多租户架构
- delphi - 如何用从 1000 到 9999 的不同随机数填充数组?
- react-native - 在 iOS 上 React Native 默认 LayoutAnimations
- c# - 将文本绘制到 png 文件上的高效方法?
- python - Windows上的pytest超时失败测试