locked
Find the owner of an email using managed API RRS feed

  • Question

  • Hi

    EWS 2010 SP1 with Managed API 1.1 on VS2010Pro

    I'm trying to use ExchangeService.CopyItems but I am not getting the Ids of the new items from the service. The response collection has no erros and all item properties are null. I'm specifying returnNewItemIds=true in the CopyItems method.

    I am copying from one user to another, and according to the EWS (non managed) docs ids are not normally returned for that operation, so I wonder how I can discover the ids of the new items in that case?

    Regards, Hogni

    Wednesday, September 28, 2011 11:32 AM

All replies

  • AFAIK this hasn't changed on 2010 the only way to get the new Id's is to use a FindItems operation on the folder you copied them to and then correlate the copied Items you should be able to use the PR_Search_key http://msdn.microsoft.com/en-us/library/cc815908.aspx to do this. Otherwise you can create your unique custom property on the Item before you copy it then search based on this.

    Cheers
    Glen

    Thursday, September 29, 2011 4:49 AM