cOPY eMAIL bODY INTO A WORD DOCUMENT

i WANT TO READ THE EMAIL BODY(I.E MESSAGE) AND COPY IT TO A WORD DOCUMENT . Which activity should i Use ?

Please tell the procedure for it

Hi @Veda_Praneet

Follow the below procedure

  1. Use “Get Outlook/IMAP/Exchange Mail Messages” activity
  2. for each email in emailList
    {
    strVar = email.body.ToString
    Use “Append Text” activity
    assign strVar in Text block of “Append Text” activity
    }

Happy Automation :slight_smile:

There is no activity called “Append Text”.

I can access the body of email with item.Header(“Plain Text”). So I actually tried using Write Text File activity , in the place of text i kept item.Header(“Plain text”)
but its throwing an error

This is my situation.

@Veda_Praneet

Append Text will available in Word Activities, install UiPath.Word.Activities

You will find as below

image

Hope this helps you

Thanks

Thank you :slightly_smiling_face:

Its not working @Mohsin_Inamdar . Kindly let me know where I’m gong wrong

What is the type of for each ?

system.Net.mail.mailmessages

Use Append Text activity in Word Application Scope

Kindly please see the screenshot bro. I am getting error in that Word Application Scope.
Its not taking that variable as input

In your screenshot I didnt found word application scope

ohh.Got it bro. I will try.

Thank You

Solved @Mohsin_Inamdar Thanks a lot :slightly_smiling_face:

If its solved please mark it as solution

Thank you …
Happy Automation

:v: :slightly_smiling_face:

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