How to get body etc from email with looping

Hi,

that is probably an easy topic but I dont know how to get body from email.
I’ve got list of email with exchange activity. Them I need to loop through them and in if activity I have to check the body, title etc. When I write mail. i dont see such option. Should I change type of variable or sth ?

1 Like

Hey @Marek_Matuszak,

Use mail.body to use the body of the mail for your manipulations.

Feel free to post if any queries

Thanks :slight_smile:

Is the typeArgument of your foreach loop system.net.mail.Mailmessage?

1 Like

@Marek_Matuszak
Save the for each activity TypeArguments as System.Net.Mail.MailMessage

Happy automation

Best Regards,
Vrushali P. Gave

1 Like

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