Van Fog
New Member
- Outlook version
- Email Account
- Exchange Server
Hi,
I am using Outlook 2007 (don’t laugh!).
I am trying to process items in a search folder for a shared mailbox.
I am trying to use the following line, which works well for my primary mailbox:
This line does not work for the shared mailbox, however.
In searching online, I have found the following site: https://social.msdn.microsoft.com/F...s-of-shared-mailbox-with-vba?forum=outlookdev
The suggestion in that thread is that the only way to get the items is via Extended MAPI (C++ or Delphi) or Redemption (which wraps Extended MAPI).
In the following thread, the suggestion is that AdvancedSearch doesn’t work for searching subfolders in shared mailboxes, and that “you'd need to get the shared Inbox and recursively get each subfolder and then run a search or a filter operation on the Folder.Items collection, or use GetTable() with a filter”:
http://msdn.developer-works.com/article/11548778/application+advanced+search+in+a+shared+mailbox
Question: Can someone please point me in the right direction for getting the items in the search folder (Redemption if not an option)? I’m happy to figure out the details on my own, but am just after a pointer in the right direction. Can I write a small function in C++, and then reference that using VBA? Or following the second article, how would I process items in folders recursively (does anyone have an example I can learn from) and/or use GetTable()?
Any help would be greatly appreciated!![Smile :) :)](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f642.png)
Thanks,
Van
I am using Outlook 2007 (don’t laugh!).
I am trying to process items in a search folder for a shared mailbox.
I am trying to use the following line, which works well for my primary mailbox:
Session.Stores.Item(StoreName).GetSearchFolders(SourceFolder)
This line does not work for the shared mailbox, however.
In searching online, I have found the following site: https://social.msdn.microsoft.com/F...s-of-shared-mailbox-with-vba?forum=outlookdev
The suggestion in that thread is that the only way to get the items is via Extended MAPI (C++ or Delphi) or Redemption (which wraps Extended MAPI).
In the following thread, the suggestion is that AdvancedSearch doesn’t work for searching subfolders in shared mailboxes, and that “you'd need to get the shared Inbox and recursively get each subfolder and then run a search or a filter operation on the Folder.Items collection, or use GetTable() with a filter”:
http://msdn.developer-works.com/article/11548778/application+advanced+search+in+a+shared+mailbox
Question: Can someone please point me in the right direction for getting the items in the search folder (Redemption if not an option)? I’m happy to figure out the details on my own, but am just after a pointer in the right direction. Can I write a small function in C++, and then reference that using VBA? Or following the second article, how would I process items in folders recursively (does anyone have an example I can learn from) and/or use GetTable()?
Any help would be greatly appreciated!
![Smile :) :)](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f642.png)
Thanks,
Van