arjungupta
New Member
Hey,
i was facing the same problem when trying to read mails from a shared mailbox.
If you need this function you have to change the Internal_Get Items of the MS Outlook Email VBO or better create a new VBO e.g. MS Outlook SharedFolder VBO.
Comment out the function GetDefaultFolder in the Code stage and paste in the following code
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)
You could add a new Parameter for your FMMail to get the mails of share dynamically.
Unfortunatly the "Internal_Get Items" Method is only used for some actions in the MS Outlook Email VBO so you can't use all the actions of it e.g.
"Send Email", "Delete Email" etc.. If you need all actions create a new VBO e.g. MS Outlook SharedFolder VBO and replace every GetDefaultFolder functions in the code stages.
P.S:
Blue Prisms Outlook VBO does not sync mails automatically.
If you call the action Get Received Items you may not get new incoming messages. In this case you could let outlook run in background, call the method multiple times or even better sync the folders by using SyncObjects or SendAndReceive function.
Best Regards
Marcel
5/6/2020 - I tried the same code but it does not work for me. I have the shared mailbox added in the Outlook client (I just have 1 default profile with my email address as the default mailbox and then a shared mailbox is also added). I am trying to read the emails of a sub-folder inside the inbox folder of this shared mailbox. We are on version 6.7. Its not working. What could be my mistake here? Thanks in advance for the help!