none
[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?

     

    regards

    Chris

    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.

    http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/thread/eadb0e26-80d3-4623-9ed3-f5bf181b7f9f

    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:

    http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/thread/80dffa54-698e-4046-9434-1494530ff913

    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
    Moderator
  • 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. 

     

    cc

     

     

    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). 

    EWS:

    0000000038A1BB1005E5101AA1BB08002B2A56C20000454D534D44422E444C4C00000000000000001B55FA20AA6611CD9BC800AA002FC45A0C000000434831505244303530324D423130302E6E616D70726430352E70726F642E6F75746C6F6F6B2E636F6D002F6F3D45786368616E67654C6162732F6F753D45786368616E67652041646D696E6973747261746976652047726F7570202846594449424F484632335350444C54292F636E3D526563697069656E74732F636E3D637265647161746573742E6F6E6D6963726F736F66742E636F6D2D35383034372D7465737465723133333600

    OL:

    0000000038A1BB1005E5101AA1BB08002B2A56C20000454D534D44422E444C4C00000000000000001B55FA20AA6611CD9BC800AA002FC45A0C000000434831505244303530322E6D61696C626F782E6F75746C6F6F6B2E636F6D002F6F3D45786368616E67654C6162732F6F753D45786368616E67652041646D696E6973747261746976652047726F7570202846594449424F484632335350444C54292F636E3D526563697069656E74732F636E3D637265647161746573742E6F6E6D6963726F736F66742E636F6D2D35383034372D7465737465723133333600

    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.

     

    Chris

     

     

     

    Tuesday, June 21, 2011 7:34 PM