How to save the Microsoft Outlook email body content to a text file

I’m working on the project that required to copy email body contents to a text file, however, no Outlook App is allowed to install on the computer that i use. So, I’m using O365 (Microsoft 365 Scope) to read the email but don’t know how to save the email body to text file, please help.

Best regards,

Eric

@adid_eric

Welcome to the community

from the returned emails use a for loop for them and inside loop currentitem.Body will get the body of the email can use write text file activity and write that to text file

cheers

Thank you for your swift reply, it works now.

1 Like

@adid_eric

Glad it helped

Happy Automation

Please close the topic if resolved else happy to help

cheers

Dear,

What about the email body is in jpeg? Any chance convert the entire email to pdf file, please advise.

Thanks

Eric

@adid_eric

Try extracting the bod as html and save the file as text file…then open it in browser and print or save as pdf

cheers

Thanks. I will try to use your suggestion.

1 Like