Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Forms / January 2004

Tip: Looking for answers? Try searching our database.

GetFolderFromID fail on multiple database environment

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Thomas Tseng - 12 Jan 2004 11:08 GMT
I try to traveral all mailbox on Exchnage and get PR_ENTRYID and
PR_STORE_ENTRYID from MAPI. I pass the ids to GetFolderFromID(). It's
ok if the folder is at the same database with the mailbox specified in
MAPI profile. But GetFolderFromID() will fail if the folder is on
another database.
The error codes are 0xab440154, 0xb9b40154, 0xc4140154...

Do anyone have similar problem when converting folder between MAPI and
OOM in multiple database environment?

Thanks
Thomas
Ken Slovak - [MVP - Outlook] - 12 Jan 2004 15:03 GMT
Are you using both EntryID and StoreID in your call to
GetFolderFromID? Are you getting a short-term or long-term ID from
MAPI?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginners Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> I try to traveral all mailbox on Exchnage and get PR_ENTRYID and
> PR_STORE_ENTRYID from MAPI. I pass the ids to GetFolderFromID(). It's
[quoted text clipped - 8 lines]
> Thanks
> Thomas
Thomas Tseng - 13 Jan 2004 01:38 GMT
Thomas Tseng - 13 Jan 2004 02:17 GMT
Thanks for your reply.
I use HrOpenOneProp(lpFolder, PR_ENTRYID...) and HrOpenOneProp(lpFolder,
PR_STORE_ENTRYID,...) to get ids. It's long-term id, right?
I also do the following test.
Environment: Exchange 2000 with two databases. One is DB1 the other is
DB2.
Test case1: I create a profile to point to mailbox on DB1. The
GetFolderFromID() success on all mailboxs on DB1 but fail on DB2.
Test case2: I create another profile to point to mailbox on DB2. The
GetFolderFromID() success on all mailbox on DB2 but fail on DB1.

Thomas
Ken Slovak - [MVP - Outlook] - 13 Jan 2004 14:14 GMT
Please post some of the preceding messages in the thread when you post
a reply. Otherwise it's very hard to follow a thread and know what
went on before in it.

Are you logged into the second database? You would need something like
the equivalent of a login using a dynamic profile.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginners Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> Thanks for your reply.
> I use HrOpenOneProp(lpFolder, PR_ENTRYID...) and HrOpenOneProp(lpFolder,
[quoted text clipped - 8 lines]
>
> Thomas
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.