none
[EWS] Maximum number of members in a contact group RRS feed

  • Question

  • I am using EWS (direct XML, not the managed API) to create contact groups in Office 365.  When I reach 302 members, EWS will respond with "CorruptData".  I don't think my data is corrupt, because I have experimented with various sets that work fine, only fail when that number is reached.  I am using extended property ids 32852 and 32853 (binary arrays) to set the one-off member data.  Any idea why this limitation is present, and what I can do about it?

    Saturday, June 21, 2014 4:44 AM

All replies

  • Is there any reason why your using the Extedned properties directly ? since Exchagne 2010 you can use update Item to add a member to a contact Group eg

      <?xml version="1.0" encoding="utf-8"?>
      <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="
    http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://sc
    hemas.microsoft.com/exchange/services/2006/types" xmlns:soap="http://schemas.xml
    soap.org/soap/envelope/">
        <soap:Header>
          <t:RequestServerVersion Version="Exchange2013" />
        </soap:Header>
        <soap:Body>
          <m:UpdateItem MessageDisposition="SaveOnly" ConflictResolution="AlwaysOver
    write">
            <m:ItemChanges>
              <t:ItemChange>
                <t:ItemId Id="AAMkADk0OTQ3NjhhLTUzM2UtNDliMi1iYzM4LWQ5Y2JhMmMyYTkxZg
    BGAAAAAABpy48RairITJtRzpjfXjnTBwAOv8A6wS4pSZxXkD7GUo9PAAAAiYaXAAB8PtJwmH78TaGH6N
    /gd2ToAABqUMbdAAA=" ChangeKey="EgAAABYAAAB8PtJwmH78TaGH6N/gd2ToAABqWAGc" />
                <t:Updates>
                  <t:AppendToItemField>
                    <t:FieldURI FieldURI="distributionlist:Members" />
                    <t:DistributionList>
                      <t:Members>
                        <t:Member>
                          <t:Mailbox>
                            <t:EmailAddress>user@domain.onmicrosoft.com.com</t:EmailAddress>
                          </t:Mailbox>
                        </t:Member>
                      </t:Members>
                    </t:DistributionList>
                  </t:AppendToItemField>
                </t:Updates>
              </t:ItemChange>
            </m:ItemChanges>
          </m:UpdateItem>
        </soap:Body>
      </soap:Envelope>

    Its a lot better idea (because its an append) then updating the whole property which must be getting quite large when you hit 302 members. (have you had a look at the size the property that your trying to update? my guess is that its failing because of this).

    Cheers
    Glen

    Monday, June 23, 2014 4:55 AM