none
Unique Id in Exchange RRS feed

  • Question

  • We want to search emails with the given uniqueID like this:

    final FolderId folderId = new FolderId(container.getId().getId());

     We retrieve the uniqueId with the following statement:             exchangeItem.getId().getUniqueId()

    Is the unique ID always the same? For the inbox folder I think the unique ID changes…

    Friday, March 22, 2013 7:50 AM

All replies

  • If you have the ewsID of a particular item them is no point in searching for the item because you can just bind directly to that Item. So the first question is why are you searching for it ?. The ewsID do change for example if an item is moved between folders etc. Generally the best thing to store if you are trying to store in ID that you can use to later search for an Item is the pidTagSearchKey property http://msdn.microsoft.com/en-us/library/office/cc815908.aspx which doesn't change when an item is copied between folders.

    Cheers
    Glen

    Monday, March 25, 2013 1:00 AM