Weird StoreID problem

D

David Wilson

The script:

set oOutlook = CreateObject("Outlook.Application")
Set oFolder = oOutlook.GetNameSpace("MAPI").Folders("Public Folders")
Set oFolder = oFolder.Folders("All Public Folders")
MsgBox "Length: " & Len(oFolder.StoreID) & Chr(10) & Chr(10) &
oFolder.StoreID

Short and sweet. Problem is, that under Outlook 2000, it returns a 140
char StoreID, but under 2003, it returns a char one. The one returned
by 2003 doesn't seem to be usable as a StoreID. One thing I did note
was that the first 140 chars of the 450 char string was identical.

Has anyone seen this or know what the heck is going on?

Thanks,

David Wilson
 
D

Dmitry Streblechenko \(MVP\)

What do you mean it is not usable? Why do you need to know its length and
contents? For all practical purposes all entry ids should be treated as
black boxes, the contents of an entry id only make sense to the parent store
provider.

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

David Wilson

I can only assume it is not usable since 2000 gets the shorter storeid
and works without a hitch, whereas 2003 gets a "Could not open item.
Try again." error. The storeid is the only difference I could find
when accessing the same item in the same store location, hence my
interest in it at the moment.

btw, both 2000 and 2003 are using identical code.

David Wilson
 
D

Dmitry Streblechenko \(MVP\)

Do you share the same value of the store id across different Outlook
versions? Are you using PST or Exchange?

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

David Wilson

We use Exchange. As to sharing, I'm not too sure. We use a postitem as
a central item (Like a Master Project) that all items based off that
are referenced too. We open said item to retrieve information, nothing
more. That's where the, I would hope, identical entryid and storeid
come from across the different outlooks.

Thanks for you help Dmitry.
 
D

Dmitry Streblechenko \(MVP\)

If you are using Outlook 2003 in a cached mode, then the stores *are*
different - cached mode talks to the local file instead of the remote
Exchange server
AFAIK Outlook 2003 should be able to understand the "live" entry id from
Outlook 2002, but not the other way around.

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

David Wilson

I tried turning off the 2003 cache mode, but it still didn't work.

I wouldn't worry about it too much, since the code failed to work,
we're using a slightly different method which does the job. Boss
doesn't like waiting ^^

Once again, thanks for your help Dmitry.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top