[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
          <t:RequestServerVersion Version="Exchange2013" />
          <m:UpdateItem MessageDisposition="SaveOnly" ConflictResolution="AlwaysOver
                <t:ItemId Id="AAMkADk0OTQ3NjhhLTUzM2UtNDliMi1iYzM4LWQ5Y2JhMmMyYTkxZg
    /gd2ToAABqUMbdAAA=" ChangeKey="EgAAABYAAAB8PtJwmH78TaGH6N/gd2ToAABqWAGc" />
                    <t:FieldURI FieldURI="distributionlist:Members" />

    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).


    Monday, June 23, 2014 4:55 AM