I am trying to use a for each loop to go through all of the emails that I have extracted from a specific mailbox in outlook. I use the Get outlook Mail Message activity to get all the emails which is in the form of a list of mail messages. The problem is when I try to loop through the list in the for each loop, I encounter an error saying that it is of type object and not type Mail Message. Is there a reason it is picking it up as an object and not as a mail message which it is? Also how do i convert or default back to the correct mail message type?
Have You select type argument for For Each as System.Net.Mail.Mailmessage
Thank you so much!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.