[EWS 1.1 Managed] MAP entryId/storeId (outlook) to UniqueId (Exchange) RRS feed

  • Question

  • Is there a mechanism to do this? I have a requirement to allow a user to tag an item from an OWA-like interface then, from that tag, retrieve the item from within Outlook.


    Is their an algorithm to convert these two identifiers?




    Monday, June 20, 2011 6:13 PM

All replies

  • Hello Chris,

    There isn't an algorithm to convert between these identifiers. You can use the ConvertId opertion to perform the conversion but that costs a request/response. Another option is to load the EntryId in the OWA-type application so that it is available to use with OOM. Here is a post that shows how to identify the store entry id and add it to the property set.

    You can add that extended property to your property set to get the store id for use with Outlook.

    Here is another post of interest:

    With regards,




    Michael | Microsoft Exchange SDK

    The Exchange Development Forum Guide has useful information for using the Exchange Development Forum.

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Monday, June 20, 2011 6:34 PM
  • Michael,

    Thanks for that. I had the storeId value already though was treating it as a string (as it is in Outlook). I am using the following extended props:


     List<ExtendedPropertyDefinition> extendedPropertyDefinitions = new List<ExtendedPropertyDefinition>();

                extendedPropertyDefinitions.Add(new ExtendedPropertyDefinition(DefaultExtendedPropertySet.Common, 34100, MapiPropertyType.String)); //mileage

                extendedPropertyDefinitions.Add(new ExtendedPropertyDefinition(DefaultExtendedPropertySet.Common, 34101, MapiPropertyType.String)); //billingInformation

                extendedPropertyDefinitions.Add(new ExtendedPropertyDefinition(DefaultExtendedPropertySet.Common, 4095, MapiPropertyType.Binary)); //EntryId

                extendedPropertyDefinitions.Add(new ExtendedPropertyDefinition(DefaultExtendedPropertySet.Common, 4091, MapiPropertyType.Binary)); //storeId

                return extendedPropertyDefinitions;


    However, when retrieved, they are always empty. 





    Monday, June 20, 2011 7:45 PM
  • More on this. I've now, through looking at some other forum postings, found a way to get the storeId information from EWS. I now need to map it to Outlook's version of the StoreId. 

    Unfortunately, the two are different (though similar). 





    Looking at it closely, somewhere in the middle, the values diverge (at sequence 4D4231) for 10 spaces, re-align for sequence 2E6D616, then diverge again for 20 spaces, aligning again at 2E6F7574 til the end. 


    How to convert between the two? I've seen mention of a ProviderUID - but that is supposed to be at the start of sequence, and only in OL. In this case, obviously, the extra bits are in the middle of the sequences. 


    By the way, EntryIds align perfectly.






    Tuesday, June 21, 2011 7:34 PM