cancel
Showing results for 
Search instead for 
Did you mean: 

MAPIEx - Need to access Outlook folders that are not under the Inbox

PeterBly
Level 3
Hello, I have a BP process that uses MAPIEx and pulls emails out of an Outlook Inbox subfolder. It processes then moves the email to another Inbox subfolder. During a demo, the client asked that we not use Inbox subfolders. How do I go about reading from and moving to subfolders that are not under the Inbox? Thanks Pete
3 REPLIES 3

ryanamiller
Level 5
I attempted to update the MAPIEx object to perform this recently but did not find a solution. There's a line in the GetMail code stage that uses an OpenInbox() function:     If Not mapi.OpenInbox() Then Throw New MAPIException( _              ""Failed to access inbox"") I was unable to find if there was an OpenFolder() or something equivalent that may perform the same function.  From my understanding, the Blue Prism object is building off of the MAPIEx library (https://www.codeproject.com/Articles/10881/MAPIEx-Extended-MAPI-Wrapper).  It would definitely be great if Blue Prism could provide a list of functions that are available to use in the code stages if we want to update/add different actions to extend the default MAPIEx object.

NitinSafaya
Level 3
Hi,   I was facing similar issue 'Moving email to Public folder'. I solved it using Microsoft.Introp.Office.Outlook library. Basically I created C# code to access outlook using Microsoft library. You can check this URL for reference: https://www.codeproject.com/Questions/892824/move-unread-mail-to-other-folder   Thanks, Nitin

Anonymous
Not applicable
It would help to know where your subfolder is. If it's in the sent items, you can use OpenSentItems() instead of OpenInbox in the code