Reading emails from a subfolder within a shared mailbox

GatesV

Member
Good day BP Gurus,

Following another thread on this subject, I was able to modify the Internal_Get Items code in the Outlook VBO to read emails from a shared mailbox using this modification:
Code:
'Commented out this for use of shared Mailbox
'Dim folder = _nameSpace.GetDefaultFolder(Outlook_Folder_ID)

'Use for functional or shared Mailbox
Dim FMMail = "YOUR FM NAME"
Dim vRecipient = _nameSpace.CreateRecipient(FMMail)
Dim folder = _nameSpace.GetSharedDefaultFolder(vRecipient, Outlook_Folder_ID)

But I am not able to read emails from a SUBFOLDER within that shared mailbox. The problem is that all emails the process needs to interact with are within subfolders.

Is anyone of you able to guide me with this?

Thanks in advance!
 

Cleidson

New Member
Hello GatesV, do you can share your adjusted vbo please? i am trying to get emails from all shared accounts in my outlook, but no sucess
 
Top