Storing information in Notepad

Hi All,
I am currently working on a mail automation task, where mail are automated to different id’s.
I want to store the information in a notepad file, specifically the body of the mail.
All these info, needs to be stored in the same file.


This is the final part of the flow, where exactly the notepad flow needs to be defined.

1 Like

@Rushi_Muni After you have Collected all the Data in variables, you can pass those variables as Values to Type Into Activity of the Notepad.

@Rushi_Muni

Retrieve the Mails into MailMessage, loop through it.
Store the item.body into a particular string variable.
Then, Write text file activity can be used to write the content of the particular email as long as you have the email content as String.

1 Like
  1. Writing the mail content in same text file
    Get the Mails using get MailMessage and loop it
    Store the item.body into a particular string variable . and append it using string builder
    Then, Write text file activity can be used to write the content of the String builder ( which
    contains all the body content)
    Note :- Dont forget to split a mail body of each mail.

  2. Writing the mail content in Diff text file
    Get the Mails using get MailMessage and loop it
    Store the item.body into a particular string variable
    Then, Write text file activity can be used to write the content of the String ( which contains all
    the body content) and store wrt to subject or sender with any unique reference or with mail time
    stamp
    Note :- Dont forget to split a mail body of each mail.