Cannot Extract Body Text from Outlook Mail Message

I need to extract the body text from Outlook emails. I see many posts on this topic, but none of the solutions work for me. It always returns a blank.
item.Subject.ToString works fine, but item.Body.ToString returns a blank.

I have tried all of the common fixes:
item.Body.ToString
item.Body.ToString()
item.Headers(“HTMLBody”)
item.Headers(“PlainText”)

Can you please send what the variable item returns in the Immediate panel?

And where are you assigning the item variable?

Hi

Welcome to UiPath forum

I hope all these will work for sure

I hope you didn’t retrieve any mail from get mail activity

Once after you get the outout variable from mail activity say named out_mailmessage, use a writeline activity and mention like this

Out_mailmessage.Count.ToString

If the count is more than 0 only then the above expression will work

Cheers @feighc