Outlook 2013为转发的电子邮件生成无效的附件ID,导致EWS GetAttachment()操作失败

时间:2018-05-15 17:08:33

标签: outlook exchangewebservices outlook-addin attachment

有人可以确认这是否是Outlook 2013中的产品错误(15.0.5023.1000, 64-bit),其中Outlook 2013为FORWARDED电子邮件中的附件生成无效attachmentID

此外,当通过Outlook 2016访问完全相同的转发电子邮件时,一切正常并且有效attachmentID。使用Outlook 2016转发的电子邮件在Outlook 2013和Outlook 2016中都可以正常工作。通常,Outlook 2013中给定附件的attachmentID与Outlook中相同附件的attachmentID相同2016.仅在使用Outlook 2013转发电子邮件的情况下,附件ID会因Outlook 2013中的attachmentID无效但Outlook 2016中的有效

而不同
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Header>
    <ServerVersionInfo MajorVersion="15" MinorVersion="1" MajorBuildNumber="669" MinorBuildNumber="32" Version="V2016_07_13" xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
  </s:Header>
  <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <m:GetAttachmentResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
      <m:ResponseMessages>
        <m:GetAttachmentResponseMessage ResponseClass="Error">
          <m:MessageText>The specified attachment Id is invalid.</m:MessageText>
          <m:ResponseCode>ErrorInvalidAttachmentId</m:ResponseCode>
          <m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
          <m:Attachments />
        </m:GetAttachmentResponseMessage>
      </m:ResponseMessages>
    </m:GetAttachmentResponse>
  </s:Body>
</s:Envelope>

0 个答案:

没有答案