Email message extraction

Hi all,

I am trying to save the mail messages in a csv file. I am storing the messages by running a sequence which will store the list of mail message in the form of mail messages. But it is showing me some error telling implicit conversion of type string to type mail messages.
Can anyone please help me.

Sushree Suravi

Hi @sushree.suravibuyan - are you using For loop or For Each?

Hi @sushree.suravibuyan,

Would request you to do the following:

  1. Get Outlook mail messages in a list.
  2. Create a datatable to save in csv file
  3. Use For each activity with TypeArugument as - System.Net.Mail.MailMessage
  4. Use activity add data row with the ArrayRow specified in screenshot.
  5. Use write csv activity to write the required data into csv

Vikas Reddy


I am using foreach loop.

Hi @vikas_reddy_Vicky

I am trying to do it with get imap mail messages. I am trying to extract mail messages from gmail .

Hi @sushree.suravibuyan - Click on the For each and then change the Type Argument as System.Net.Mail.Mailmessage

Hope this enable your Workflow.

1 Like

Thanks alot @cthamizh. i resolved the issue by your help. But it worked for me with System.Net.Mail.MailMessage.


Sushree Suravi


Hi @vikas_reddy_Vicky @cthamizh @sushree.suravibuyan @Lakshmi_Ganesan @manasa @12scs169

can anyone get the solution for this issues !!!

while i am using Get Outlook mail Message Activity in that property Mail Folder i have gave command as “Sent Items”
Error : The specified folder not exists.
But in My outlook folder are available : image