从 Outlook 图表中的 InternetMessageHeader 获取 In-Reply-To 值 api

get In-Reply-To value from InternetMessageHeader in outlook graph api

我正在尝试使用 MS 图 API 获取 In-Reply-To 消息 header 而无需 return 整个 header (internetMessageHeaders ).我已经获得了几个记录在案的属性(例如 bccRecipients、from、id)here

我看过 asking this and they point to using SingleValueExtendedProperties/internetMessageHeaders with a $filter clause. I've tried this and it appears to only work with properties which are documented

这就是我尝试过的全部给出 404 错误的方法(我已经检查了实际消息中是否存在 In-Reply-To header)

https://graph.microsoft.com/v1.0/me/messages/MSG_ID?
$select=Subject,internetMessageId,from,id,bccRecipients,
SingleValueExtendedProperties&$expand=SingleValueExtendedProperties($filter=In-Reply-To eq 'String 0x007D')
https://graph.microsoft.com/v1.0/me/messages/MSG_ID?
$select=Subject,internetMessageId,from,id,bccRecipients,
internetMessageHeaders&$expand=SingleValueExtendedProperties($filter=In-Reply-To eq 'String 0x007D')
https://graph.microsoft.com/v1.0/me/messages/MSG_ID?
$select=Subject,internetMessageId,from,id,bccRecipients,
internetMessageHeaders&$expand=internetMessageHeaders($filter=In-Reply-To eq 'String 0x007D')

您需要请求 PR_IN_REPLY_TO_ID MAPI 属性 (0x1042001F)

$expand=singleValueExtendedProperties($filter=id eq 'String 0x1042')