locked
ExchangeService.DeleteItems response order RRS feed

  • Question

  • I am creating an application that consumes Exchange Web Services (EWS 2.0).

    I am using the DeleteItems method (http://msdn.microsoft.com/en-us/library/microsoft.exchange.webservices.data.exchangeservice.deleteitems(v=exchg.80).aspx) to delete multiple email messages from an exchange mailbox.

    This method takes a list of item IDs, and returns a collection of responses (ServiceResponse class), one ServiceResponse for each item ID that is passed to the method.

    A returned ServiceResponse object does not contain the item ID that it is associated with.

    My question is: Can I guarantee that the order of the ServiceResponse objects is the same as the order of the Item IDs that I passed to the method?

    I could not find anything in MSDN that talks about the order of responses returned from EWS in such case.

    Thank you

    Sunday, September 1, 2013 12:36 PM

Answers

All replies

  • Yes they are processed in order so if you have say 40 items in a batch and the first 10 are successful and the last 30 fail (say if you exceed the throttle setting) the responses should correspond to the order they where sent in the request. This is the same if your using getuseravailability as well.

    Cheers
    Glen

    • Marked as answer by Yacoub Massad Monday, September 2, 2013 2:08 PM
    Monday, September 2, 2013 7:02 AM
  • Thank you. This is the only way it makes sense. But is there an MSDN reference to support this?
    Monday, September 2, 2013 9:39 AM
  • Not that i know of I can only speak from experience, Probably the best verified referance would the Inside Exchange Web Services MSPress book http://books.google.com.au/books?id=9I0g-GAKm6YC&pg=PT1549&lpg=PT1549&dq=inside+exchange+web+services+batch

    Cheers
    Glen

    • Marked as answer by Yacoub Massad Monday, September 2, 2013 2:09 PM
    Monday, September 2, 2013 11:00 AM