cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to "Get Received Items" from a shared inbox in Outlook?

DanReeves
Level 2
I am trying to get unread emails from a shared inbox in Outlook, but I don't see any actions to do this. Has anyone done this before or know how to do it?
Thank you.

------------------------------
Dan Reeves
------------------------------
1 REPLY 1

AmiBarrett
Level 12
Depending on which VBO you're using, it's a slightly different set of steps. I'll list the changes for the Outlook VBO, as that's much more stable. (Alternatively, grab the build I posted here, which already has this integrated, among other things.)

Page Internal_Get Items:
====================
Start stage:
-Add a text data Item, "Shared E-mail"

Code stage:
-Add a text input, "sharedEmail"
-Add the following after the initial declarations at the top
Dim olSharedRecip as object

-Add the following just before it starts building the datatable
if sharedEmail <> Nothing then
	olSharedRecip = _nameSpace.CreateRecipient(sharedEmail)
	folder = _nameSpace.GetSharedDefaultFolder(olSharedRecip, Outlook_Folder_ID)
end if

Go back to page Get Mail (Basic) [Or whatever you want to use]
=================================================
-Add new input to Start stage
-Add new input to page reference of "Internal_Get Items"

------------------------------
Ami Barrett
Lead RPA Software Developer
Solai & Cameron
America/Chicago
------------------------------