Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot Access Shared Contacts Folder In Outlook 2010 VB.Net

Im creating outlook add-in and I am having problems getting into Shared folder using vb.net.

I have tried

contactsFolder = ns.Folders.Item("Shared Contacts")

and

contactsFolder = ns.Folders.Item("Public Folders")

still have no way of accessing it. can someone help me please. I keep getting error:

The attempted operation failed.  An object could not be found.
like image 697
PaShKa Avatar asked Dec 03 '25 17:12

PaShKa


1 Answers

Since you are using a shared folder, the folder must not exist in the default Store. You probably need to enumerate Session.Stores (ns.Stores). See related SO post for code example.

like image 108
SliverNinja - MSFT Avatar answered Dec 06 '25 11:12

SliverNinja - MSFT