Email conversion type error

Hello,

I am getting the follow error when scraping an email folder for emails. I can’t seem to fix the issue. Any help would be great, thanks!

image

Edit: When I change messages to a list the above error is fixed. But then when I try to move the emails from one outlook folder to another, I get this error:

image

1 Like

@kdrumz

Get Outlook Mail Message activity will give you output as List of Mail messages.

In For Each loop, mention argument type as System.Net.Mail.Message and then check it.

1 Like

Messages is already a System.Net.Mail.Message type though

the issue starts from GET OUTLOOK MAIL ACTIVITY ITSELF
–go to property panel in get outlook mail activity and in the mailmessage property press ctrl+k so that we will be able to create a variable and lets name it like list_mailmessage and that variable will be of type system.collections.generic.list(of system.net.mail.mailmessage)
–now use a FOR EACH activity and in the property panel pass the above variable as input and change the type argument as system.net.mail.mailmessage

–and finally in move mail activity mention as item instead messages as input
as the for each loop variable name is item
image

hope this would help you @kdrumz
Cheers

@kdrumz. Just to be sure.
Is the variable “messages” defined as: “List<System.Net.Mail.MailMessage>” ?

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.