Dim app = CreateObject("Outlook.Application")
Dim _nameSpace = app.GetNameSpace("MAPI")
Dim folder = _nameSpace.GetDefaultFolder(Outlook_Folder_ID)
Dim olSharedRecip as object
if Profile <> "" then
_nameSpace.Logon(Profile, , True, True)
if sharedEmail <> Nothing then
olSharedRecip = _nameSpace.CreateRecipient(sharedEmail)
folder = _nameSpace.GetSharedDefaultFolder(olSharedRecip, Outlook_Folder_ID)
Hi Ami,I downloaded your release and tried running it. It runs through but doesn't pull anything.
For input paramenters on the action...........I've tried it with nothing in the Shared Email and I've tried it with the full email in shared folder and I've tried it with how the shared box shows up in my email. None of them seem to be pulling anything but don't error out. If I try to add my subfolder of "Test" it then says object can't be found. So that makes it seem like it is being read. Any ideas on how to get it going?Thanks,Jon
Dim app = CreateObject("Outlook.Application")Dim _nameSpace = app.GetNameSpace("MAPI")Dim folder = _nameSpace.GetDefaultFolder(Outlook_Folder_ID)Dim olSharedRecip as objectif Profile <> "" then _nameSpace.Logon(Profile, , True, True)end ifif sharedEmail <> Nothing then olSharedRecip = _nameSpace.CreateRecipient(sharedEmail) folder = _nameSpace.GetSharedDefaultFolder(olSharedRecip, Outlook_Folder_ID)end if
Sounds like you're trying to access a shared inbox. That's where the "Shared E-Mail" feild comes into play.Suppose under your default profile (typically either named Default or Outlook), your list of folders looks something like this:
Since you have two inboxes attached to the profile, you will need to specify the e-mail address of the target inbox in the "Shared E-Mail" field. In the case of the above example, it should be set to "Shared.Email@mydomain.com" .
>Inbox>>Subfolder 1>Drafts>Sent Items>etc etc
In my outlook i have 4 Shared Emails, and i need that BP get all unread emails from all shared email accounts, how can i do that?
do you can give me a PrintScreen with exemple?
My.Email@mydomain.com>Inbox>>Subfolder 1>Drafts>Sent Items>etc etcShared.Email@mydomain.com>Inbox>>Subfolder 1>Drafts>Sent Items>etc etc
Thanks, i dont know why but its not working, see what i got on a exemple email:
yes, on both:
Honestly? Google and Stack Overflow are two of my best friends. Though when it comes to modifying an office application specifically, I'll also refer to their VBA guide. The Excel and Word VBOs are atypical compared to how you would extend the other VBOs, so I've also in the past just copied and modified an existing code stage that seemed somewhat similar.
The short of it is: "How do I do [x] in [y] language?" So if that comes to "How do I modify a column of a collection in C#", I'll search "C# datatable modify column" and see what I can find. If it's something like shared inboxes in outlook, I'll literally just search "outlook vba shared mailbox" and go from there.
Best practice if you're modifying an out of the box VBO, is to create a separate one and label it "Extended", so you can import new releases of the originals later on without losing any data.
Personally, I prefer to develop anything new in C# because that's where my coding background prior to Blue Prism mostly is. The only major downside is that it makes it more difficult when trying to share actions to people who are trying to combine them with the base VBOs, because those are in VB. But really, it's all personal preference.
I appreciate your response.
Question: I tried doing the above to be able to read emails from shared mailbox subfolder but I cannot get it to work. I'm able to read from the shared mailbox inbox but that's about it.
Do you know what could be preventing me from getting access to the shared mailbox subfolders. I made sure all the folders in the shared mailbox were visible with owner rights to my main inbox. How can I get the outlook folder ID maybe if I pass the folder ID it will work.
The "Shared E-Mail" field needs to be the e-mail address of the shared inbox, not the label.If you want the folder IDs, you'd have to loop through each folder and write out the name and number someplace. Inbox always has the same folder number, so the sub-folder field would theoretically always match to that.
Otherwise, I found that in some instances of O365, there was a security patch pushed within the last year or so that prevents this from working. If the above doesn't work, give the new version of the official VBO a try, or have your process automate Outlook to click the mailbox you're trying to read and then modify the code stage to read the currently selected folder.
Thank you for the answer.
One more thing. Where can I go to grab the latest version of the outlook VBO?
NEW TO RPA?
What is Connected-RPA?
Intelligent RPA Platform
Why Blue Prism?
Contact the Community Team
Blue Prism DX
Privacy & Cookies
Terms of Service
© Blue Prism