我正在编写一个脚本,该脚本使用Exchange EWS API将日历上的附件保存到本地文件中。当我在任何用户帐户上执行此操作时,它都能正常工作,但是,当我尝试在共享资源帐户上使用它时,它会失败。即使附件存在,Exchange EWS的“HasAttachment”属性也会返回False
我也可以在邮递员中重现这一点。调用GetItem请求(见下文)将返回所有项目数据,但AttachmentId不存在于资源帐户上。我的用户帐户上的相同请求确实会返回AttachmentId。 HasAttachments字段在资源帐户上调用时也显示False。
是否有一些财产或价值,我失踪的资源帐户?
的GetItem:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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="Exchange2007_SP1" />
</soap:Header>
<soap:Body>
<m:GetItem>
<m:ItemShape>
<t:BaseShape>AllProperties</t:BaseShape>
<t:AdditionalProperties>
<t:FieldURI FieldURI="item:Attachments" />
<t:FieldURI FieldURI="item:HasAttachments" />
</t:AdditionalProperties>
</m:ItemShape>
<ItemIds>
<t:ItemId Id="AAAlAF..." ChangeKey="CQAAAB..." />
</ItemIds>
</m:GetItem>
</soap:Body>
</soap:Envelope>
编辑:这肯定是与该帐户本身OWA不显示任何附件的问题。共享日历帐户可以不接受附件吗?