I am using Outlook 2003 sp3 connected to Exchange Server 2003. This problem
also shows up using Outlook 2003 sp2. Other configurations have not been
tested yet.
I am using C++, but I have been getting the same results running this simple
script from the script editor in OutlookSpy, as suggested by Dimitry in some
another post regarding GetSharedDefaultFolder:
Set NS = Application.GetNamespace("MAPI")
Set Recip = NS.CreateRecipient("A")
Recip.Resolve()
set Folder = NS.GetSharedDefaultFolder(Recip, olFolderCalendar)
MsgBox Folder.Items.Count
The GetSharedDefaultFolder call throws an exception. For this user, the
exception is "Outlook does not recognize one or more names.". For some
users, I get "The operation failed.". It works fine for other users.
According to many posts I have seen, the Recip.Resolve() call is not
necessary (and annoying, since it causes the dreaded security prompt!), so I
tried removing that, but the result is the same.
One thing I noticed is that the cases that fail are those where the user
starts with the same letter as another user. This is not one-hundred
percent true, but there seems to be a strong correlation. For example, I
have only one user that starts with "B", and it works just fine, but any of
the users that start with "A" fail with one exception or the other.
Any suggestions? I can use MAPI if that is the only way around this, but I
haven't been able to find any information on replacing OOM
GetSharedDefaultFolder calls with MAPI.
Thanks,
Mark Smith
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Mark Smith" <i...@online.nospam> wrote in message
news:%23sr7BQO...@TK2MSFTNGP12.phx.gbl...
Thanks a lot!
Mark
"Dmitry Streblechenko" <dmi...@dimastr.com> wrote in message
news:%23qLlUNP...@TK2MSFTNGP14.phx.gbl...
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Mark Smith" <i...@online.nospam> wrote in message
news:O$KEtWQVG...@TK2MSFTNGP14.phx.gbl...
Is the proxy SMTP address always guaranteed to be there? If not, is there
another way that will always work?
Mark
"Dmitry Streblechenko" <dmi...@dimastr.com> wrote in message
news:%23qLlUNP...@TK2MSFTNGP14.phx.gbl...
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Mark Smith" <i...@online.nospam> wrote in message
news:u0hxSQzV...@TK2MSFTNGP12.phx.gbl...
Any ideas?
Mark
"Dmitry Streblechenko" <dmi...@dimastr.com> wrote in message
news:u8A4Cw0V...@TK2MSFTNGP15.phx.gbl...
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Mark Smith" <s...@nospam.nospam> wrote in message
news:e5np%23XwXG...@TK2MSFTNGP03.phx.gbl...
Mark
"Dmitry Streblechenko" <dmi...@dimastr.com> wrote in message
news:%23OYDExx...@TK2MSFTNGP04.phx.gbl...
Mark
"Mark Smith" <s...@nospam.nospam> wrote in message
news:O7bxwTzX...@TK2MSFTNGP03.phx.gbl...
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Mark Smith" <s...@nospam.nospam> wrote in message
news:uwyBRniY...@TK2MSFTNGP05.phx.gbl...
The only problem with doing the SMTP lookup is then I have to do a MAPI
logon, which won't work if the default e-mail client isn't Outlook. Or is
there a way to get to the current MAPI session through OOM?
Mark
"Dmitry Streblechenko" <dmi...@dimastr.com> wrote in message
news:elp7jRk...@TK2MSFTNGP02.phx.gbl...
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Mark Smith" <s...@nospam.nospam> wrote in message
news:uOIhPWxY...@TK2MSFTNGP05.phx.gbl...
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Mark Smith" <s...@nospam.nospam> wrote in message
news:uOIhPWxY...@TK2MSFTNGP05.phx.gbl...