Item.body is not showing in suggestion when I'm trying to save outlook mail body

Hi all,
I’m trying to save mail mail body content in a file but after for each loop when I’m using item.body, it’s not showing in intellisence?
Please anyone help me out.

@Sameer_Sen

Could you please tell me the steps you followed ?

@lakshman

I followed the following step

image

Please try item.Headers(“HTMLBODY”).ToString

@Sameer_Sen

Here, Get Outlook MailMessage activity will give you output as List of Mail Messages.

In For Each loop, change the type from object to System.Net.Mail.Message and then try.

If you face any issues then please let me know.

2 Likes

@Sameer_Sen - Are you trying to read any Image E-mail? If there is text available in the E-mail that will show you for sure. If not please check the ForEach Type in Properties.

Thanks,
AK

@Sameer_Sen,

Did you make item variable as System.Net.Mail.MailMessage?

1 Like

@lakshman
Thanks! … It Worked. :slight_smile:

1 Like

@Sameer_Sen

You have to mark correct one as solution :stuck_out_tongue_winking_eye:

@lakshman

I’ve already Marked correct one. :smile:

1 Like

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