Join us in improving our documentation .
Your insights matter! Let us know how we can enhance this page for you. Your feedback plays a crucial role in shaping our product, enabling us to craft clear, concise, and valuable documentation for all users.
A report will be generated in a word document through mail in which the supervisor needs to. A Supervisor needs to extract the report of their website, which is generated through mail. After being extracted, these reports are transferred to a designated folder for further processing. Upon downloading the report, it’s essential to replace a text from the word document.
The report has been extracted from their website, in which there will be wrong replacement of words. Using the “ReplaceText” activity, we are going to replace the word from the specified document and store it in a folder.
The following illustration demonstrates the process of downloading the report and extracting the “Attachment” and “Received date” using the Email Automation feature.
In this scenario, the input will be a “MailItem” that is specifically designed for utilizing the “Email automation” feature. Using the email automation activities, we will extract and store the word document. Subsequently, the extracted values of the “Attachment” will be replaced and appended with a new text in the specified word document.
Now, place the “WriteLog” activity next to the ExtractMailMessage activity.
a. Here we are using this activity to print the received date and time from the extracted mail item.
b. Enter the “Input” text as “RDT.ToString” in the box.
c. The “.ToString” is advised to use along with anyother data types other than string format. It converts any data type into string.
d. Enter the log level as “Info”.
9. Moving to the “Result_Msg” property in the output section to declare a variable to view the output.
There are two methods to store the spied value in the variable.
i. Method 1: Double-click on the variable parameter in the “Output” section and enter a name that helps you easily identify it in the flow. Here, I’m using the name “Result” and using the shortcut key “Ctrl+Q” to create the variable
ii. Method 2: Click on the variable pane, enter your preferred name (here, I’m using “Result”), and choose the data type as “String” since the output value accepts the string data type.
Now, save and execute the workflow.
Did you find this page helpful?
What didn't work for you?