0

我正在寻找 EWS 操作来编辑分发列表。此处编辑的意思是,将现有联系人添加\删除到现有组中\或更改组的显示名称。

我已经尝试过以下链接中提到的选项:- https://social.msdn.microsoft.com/Forums/office/en-US/db110c4e-a0f2-40de-9276-3e30458b254f/ews-maximum-number-of-members -in-a-contact-group?forum=exchangesvrdevelopment

还使用了 AppendToItemField、SetItemField 和 DeleteItemField 等属性?但错误是“方法或操作未实现”

4

1 回答 1

0

最后我得到了编辑组的答案。这是对我有用的 SOAP 调用:-

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
  <soap:Header>
    <RequestServerVersion Version="Exchange2013" xmlns="http://schemas.microsoft.com/exchange/services/2006/types" />
  </soap:Header>
  <soap:Body>
    <UpdateItem ConflictResolution="AutoResolve" MessageDisposition="SaveOnly" SendMeetingInvitationsOrCancellations="SendToNone" xmlns="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
      <ItemChanges>
        <t:ItemChange>
          <t:ItemId Id="AAMkADZmMjJlMDk...." ChangeKey="EgAAAB..." />
          <t:Updates>
            <t:AppendToItemField>
              <t:FieldURI FieldURI="distributionlist:Members" />
              <t:DistributionList>
                <t:Members>
                  <t:Member>
                    <t:Mailbox>
                      <t:ItemId Id="AAMkADZmMjJ..." ChangeKey="EQAAABYA..." />
                    </t:Mailbox>
                  </t:Member>
                  <t:Member>
                    <t:Mailbox>
                      <t:EmailAddress>user@contonso.com</t:EmailAddress>
                    </t:Mailbox>
                  </t:Member>
                </t:Members>
              </t:DistributionList>
            </t:AppendToItemField>
          </t:Updates>
        </t:ItemChange>
      </ItemChanges>
    </UpdateItem>
  </soap:Body>
</soap:Envelope>
于 2015-10-21T07:43:37.857 回答