Reputation: 188
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.
Upvotes: 3
Views: 1818
Reputation: 31641
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.
Upvotes: 1