我有一個相當簡單的Exchange Api應用程序,有一個主要問題;必需/可選參與者從Outlook創建的約會無法更新。但是,從應用程序創建的約會可以在兩端完全更新。Exchange Api返回「設置操作對屬性無效」。更新
{「集動作財產無效。」}
的是,我得到了回報。 下面是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));
請幫助!
我有同樣的問題。你有沒有找到解決方案? – Asterius