2
我知道可以使用get the headers from an email with this Outlook REST,但是有沒有辦法可以設置自定義標頭?我似乎無法找到任何文件。使用Outlook/Office 365 REST設置自定義標頭
我知道可以使用get the headers from an email with this Outlook REST,但是有沒有辦法可以設置自定義標頭?我似乎無法找到任何文件。使用Outlook/Office 365 REST設置自定義標頭
嘗試在消息對象上設置SingleValueExtendedProperties。您可以嘗試使用PS_INTERNET_HEADERS - {00020386-0000-0000-C000-000000000046}的媒體資源ID。
創建一個自定義標題的新消息可能是這個樣子:
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"
}
]
}