cancel
Showing results for 
Search instead for 
Did you mean: 

Read all un-read email from Outlook

NishantChoukse1
Level 3
Hi everybody,   I needed to get all unread mails from Outlook and save them into a collection.( So that i can process each email separately, in loop) I m using MapiEX, but there is only possibility to get a single mail (Newest or Oldest).  Alternatively could use the POP3/SMTP object, but i would like to know if with MapiEX this situation were possible to realize.  With MapiEX i could get a single mail, move it in an other folder and subsequently get the next mail and repeat the loop. Finally all the mail could to move in the Arrive Folder. According to this I am assuming these operation requires a lot of execution time and process needs to be run again and again, right? Request you to please guide
6 REPLIES 6

Ravindersaini
Level 7
Hi, Make use of the new MS Outlook Email VBO provided by Blueprism. This should resolve your problem. Regards, Ravinder Saini

AmiBarrett
Level 12
Pretty much what Ravinder said, assuming you have access to it (bundled with the 6x installs). If not, you'll need to come up with a custom e-mail handler.   If you have a system you don't mind installing it to, you can put 6x on a box then grab the VBO out of the /VBO folder without having to connect it to anything.

Hi,

I am trying to read emails using "MS Outlook Email VBO" the only action that i am calling is "Get Received Items (Basic)" but its throwing an error "Internal : Could not execute code stage because exception thrown by code stage: The attempted operation failed. An object could not be found." 

It appears in the code stage it is unable to run create outlook object
               CreateObject("Outlook.Application")

I am using outlook 365, how do I get rid of this issue?

------------------------------
Charanjiv Singh Janjua
Mr
Accenture
Asia/Kolkata
------------------------------

Is the required dll file being found?

------------------------------
Ami Barrett
Sr Product Consultant
Blue Prism
Plano, TX
------------------------------

Hi Ami,

Yes the required DLL file is available in automate folder (Microsoft.Office.Interop.Outlook.dll). I had found a reference to this DLL in the object initialize page. Post which I had verified.

------------------------------
Charanjiv Singh Janjua
Mr
Accenture
Asia/Kolkata
------------------------------

Hi Ami,

I was able to figure out the issue. I was not specifying the subfolder PATH correctly to the subfolder parameter. Thanks.

------------------------------
Charanjiv Singh Janjua
Mr
Accenture
Asia/Kolkata
------------------------------