【发布时间】:2015-07-07 21:32:19
【问题描述】:
我有一个相当简单的 Exchange Api 应用程序,但有一个主要问题;无法更新从 Outlook 创建的约会的必需/可选与会者。但是,从应用程序创建的约会可以在两端完全更新。
{"设置操作对属性无效。"}
是我得到的回报。 这是正在返回的 XML:
<Trace Tag="EwsResponse" Tid="6" Time="2015-07-05 10:41:38Z" Version="15.00.0847.030">
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15" MinorVersion="1" MajorBuildNumber="201" MinorBuildNumber="17" Version="V2_46" xmlns:h="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>
<m:UpdateItemResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:UpdateItemResponseMessage ResponseClass="Error">
<m:MessageText>Set action is invalid for property.</m:MessageText>
<m:ResponseCode>ErrorInvalidPropertySet</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:MessageXml>
<t:FieldURI FieldURI="calendar:OptionalAttendees" />
</m:MessageXml>
<m:Items />
</m:UpdateItemResponseMessage>
</m:ResponseMessages>
</m:UpdateItemResponse>
</s:Body>
</s:Envelope>
</Trace>
是的,我确实预先加载了它们:
Appointment appointment = Appointment.Bind(service,
new ItemId(meeting.MeetingId),
new PropertySet(BasePropertySet.FirstClassProperties,
AppointmentSchema.RequiredAttendees,
AppointmentSchema.OptionalAttendees,
AppointmentSchema.AppointmentState));
请帮忙!!
【问题讨论】:
-
我也有同样的问题。你找到解决办法了吗?
标签: exchange-server exchangewebservices