【问题标题】:Exchange Api returns "Set action is invalid for property." on updateExchange Api 返回“设置操作对属性无效。”更新时
【发布时间】: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


【解决方案1】:

这里有点猜测,但我怀疑与会者只能由组织者更新。因此,如果您的应用使用预约人以外的其他凭据进行身份验证,EWS 将不允许这样做。我已经通过更新重复模式看到了这一点,因此我猜测与会者。如果您可以冒充组织者,这可能会起作用,但是这种类型的权限可能并不总是可用。

【讨论】:

  • 感谢您的意见。这是有道理的,但是我有一个在此之前编写的应用程序,它可以免费更新必需和可选参与者。代码完全一样,所以我一定遗漏了一些东西..
猜你喜欢
  • 2012-04-16
  • 2012-07-11
  • 2018-02-24
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多