After some research and experimentation, we determined that the permanenturl
doesn't persist, but that the GUID for Calendar items should be fairly reliable. The GUIDs for Items in Exchange appear to include a hash of the entry point, so moving messages between folders can change their GUID. Since calendar items stay in the same folder, the GUID shouldn't change. So we're going to use that as our new index.
There was still the matter of updating the old index. We decided to take the following course:
- Copy the
permanentURL
value to the body of the message (actually, we're hashing a few things together) - Migrate the mailbox
- Find the
permanentURLs
in the message bodies, get the new GUID, and update our table - Use the 2010 GUIDs going forward
This was my first time working with Exchange, and I have to say that I'm a fan of EWS. It makes things so much simpler.