使用 EWS 托管 SOAP 获取事件的参考附件 API

Getting an event's reference attachments with the EWS managed SOAP API

我想检索日历事件的 OneDrive link 附件,但我不能使用 C# APIs 或 Graph APIs,所以我只能使用 EWS肥皂 APIs.

我发送了如下请求:

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
    <t:RequestServerVersion Version="Exchange2013_SP1"/>
    <t:ExchangeImpersonation>
        <t:ConnectingSID>
            <t:PrincipalName>MY_EMAIL</t:PrincipalName>
        </t:ConnectingSID>
    </t:ExchangeImpersonation>
</soap:Header>
<soap:Body>
    <m:GetItem>
        <m:ItemShape>
            <t:BaseShape>AllProperties</t:BaseShape>
            <t:AdditionalProperties>
                <t:FieldURI FieldURI="item:Attachments"/>
            </t:AdditionalProperties>
        </m:ItemShape>
        <m:ItemIds>
            <t:ItemId Id="THE_EVENT_ID"/>
        </m:ItemIds>
    </m:GetItem>
</soap:Body>

我希望事件的 Attachments 属性 包含 link 附件,但是响应 XML 甚至没有包含 Attachments 节点,我检查了图表 API 附件确实存在。

有没有办法获取有关参考 link 附件的信息,或者如果没有 C# 或 Graph API 是不可能的?

服务器版本问题。我需要做的就是将其更改为 2016:

<t:RequestServerVersion Version="Exchange2016" />