Regarding - Get Outlook Mail Message activity

Hi All,

For me item.Subject is working whereas item.Body is not working.
Can someone please help me on this.

While printing item.body I am getting blank as output.

Type and everything is correct only.(System.Net.Mail.MailMessages)

@Hitesh1

What is the TypeArgument for item? (I presume you are using a for each activity. The item variable should be of type System.Net.Mail.MailMessage)

Please set that to System.Net.Mail.MailMessage and try.

1 Like

Hi Sowmya,
Type argument is same as your only.

item.subject is working

@Hitesh1

Kindly share a screenshot of your workflow (preferably in the debug mode)

@Hitesh1

Is the body of the mail contains Text or image ?

If it contains any image then it will display blank as output.

Hi @Hitesh1,

I hope you are using Get Outlook Mail Message activity and storing the output into a variable of type System.Collections.Generic.List<System.Net.Mail.MailMessage>.

Now use a For Each activity where the item will be of type System.Net.Mail.MailMessage. Then print/get the Mail Body by this syntax -
item.Body.ToString

Thanks & Regards,
Apurba

1 Like

Kindly share screenshot, to have better understanding…

If you are using office network then please try to use your personal wifi to run this project.

Sometimes office network blocks some ports.

1 Like

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