【发布时间】:2016-07-06 08:46:26
【问题描述】:
我知道get the headers from an email with this Outlook REST 是可能的,但是我们也可以设置自定义标题吗?我似乎找不到任何文档。
【问题讨论】:
我知道get the headers from an email with this Outlook REST 是可能的,但是我们也可以设置自定义标题吗?我似乎找不到任何文档。
【问题讨论】:
尝试在消息对象上设置SingleValueExtendedProperties。您可以尝试使用 PS_INTERNET_HEADERS 的属性 ID - {00020386-0000-0000-C000-000000000046}。
使用自定义标头创建新消息可能如下所示:
POST https://outlook.office.com/api/beta/me/messages
Content-Type: application/json
{
...,
"SingleValueExtendedProperties": [
{
"PropertyId":"String {00020386-0000-0000-C000-000000000046} Name x-my-custom-header",
"Value":"Some Value"
}
]
}
【讨论】: