Difference between StoreIDs in Outlook 2007 and 2003

  • Thread starter Thread starter Len Grout
  • Start date Start date
L

Len Grout

When getting the StoreID from the same Contact Item in Outlook 2007
and Outlook 2003 the StoreIDs are different in length. This becomes a
problem when trying to support both Outlook 2007 and 2003 in an
outlook addin.
Example of the StoreID for a local Outlook contact in 2007
0000000038A1BB1005E5101AA1BB08002B2A56C20000454D534D444
22E444C4C00000000000000001B55FA20AA6611CD9BC800AA002FC4
5A0C00000045584348414E4745444556002F6F3D437947656E4578636
8616E6765446576656C6F706D656E742F6F753D46697273742041646D
696E6973747261746976652047726F75702F636E3D526563697069656E
74732F636E3D4C656E00

Example of the StoreID for the same Local Outlook contact in 2003
0000000038A1BB1005E5101AA1BB08002B2A56C20000454D534D444
22E444C4C00000000000000001B55FA20AA6611CD9BC800AA002FC4
5A0C00000045584348414E4745444556002F6F3D437947656E4578636
8616E6765446576656C6F706D656E742F6F753D46697273742041646D
696E6973747261746976652047726F75702F636E3D526563697069656E
74732F636E3D4C656E00D83521F3B7000000010000001400000079000
0002F6F3D437947656E45786368616E6765446576656C6F706D656E74
2F6F753D46697273742041646D696E6973747261746976652047726F7
5702F636E3D436F6E66696775726174696F6E2F636E3D5365727665727
32F636E3D45584348414E474544455600650078006300680061006E00
670065006400650076002E004400650076002E0043007900470065006E
0054006500630068002E0063006F006D0000000000

The same kind of thing is true for the StoreID of a Contact in a
public Store, and for any Outlook item like Appointment, Email, etc.

Is there a way in the Outlook 2007 Object Model to get the StoreID
that is the same as in Outlook 2003?
What is the reason for the change in how Outlook 2007 shortens the
StoreID?

Thank you
len
 
I noticed that as reported by Outlook spy in Office 2007 that the
lengths for the storeID varied between items that were in a public
folder and items that were local to my outlook. Items in the public
store have a storeID that was 144 characters long and Items in my
local folders have storeID's that are 302 characters long. Both of
these storeID's are significantly shorter than the storeID's reported
for public or local items in outlook 2003. These values hold true for
my test environment. WIll the length of storeID's for public folder
items always be 144 and for local items always be 302 in Office 2007?
Do the length of those values vary based on the exchange environment?
Is there a way to reliably truncate the length of the storeID as
reported by office 2003 to a value that will work in 2007?

Thanks,
Len
 
Theoretically, there is no limit on the length of an entry id. Any entry id
must be treated as a black box and your code must be prepared to handle
entry ids of any length.
Practically, things will start falling apart when an entry length id is over
32kB. Anything in between is perfectly normal, make no assumptions about the
length or the contents.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Back
Top