cancel
Showing results for 
Search instead for 
Did you mean: 

How to get All Mails in a specific folder by using Mapiex Object

Hello All,   I'm using the BluePrism Mapiex object to send and get mails, but I'm having the following issue: I Need to get all the mails into the collection and to read the mails from there, but there is a option to get only the latest mail. So, How to get all the mails from a specific folder.   Thanks, Taduri Srikanth
4 REPLIES 4

Mustafa_UlasYig
Level 6
Hi Taduri Hope I understood you correctly. 1) You first have to use the BP MapiEx action ""List Mails Within DateTimes"" and specify the sub-folder you are trying to read from. This get's output into a collection of IDs. 2) You then create a loop the loops this ID collection. 3) You use the BP MapiEx action ""Get Mail"", and specify the subfolder you are reading from and more importantly, you have to specify the ""Move to Sub-Folder"" input, otherwise you keep reading the same e-mail over and over again. 4) You have to create a email collection with all the fields specified in the ""Get Mail"" outputs and of course connect these outputs to the fields in your email collection. And Voila, you have a collection of e-mails from a subfolder. Good luck BR, Mustafa

Thanks, Mustafa...

Hello Mustafa,   How to download attachments from BP- Mapiex - Get Mail Action.   Thanks, Srikanth

Hi  In the latest version the get mail action will get the attachments of you have supplied a value for the directory for them to be stored (See attached)   Cheers Connor