Reading each mail message

Hi All!

I am pulling email from Exchange using the “Get Exchange Mail Messages” activity, but when I try to use a For Each to go through the messages, I don’t get any options for the item:


I was looking at examples on here and it looks like I should see item.Subject at the very least, but I don’t get any of those options. Do I need to use something else to go through the messages?

I am using Studio 2019.4.4 right now.

Hi @s3vn

Try to change TypeArgument of For Each activity to MailMessage,
then you will get those options.


Hi @s3vn

For each activity pass the data type System.Net.Mail.MailMessage

Kommi Jeevan.

1 Like

@kommijeevan and @wusiyangjia, thank you very much! I tried changing it to a MailMessages list, didn’t think about just a single MailMessage!

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