I have tried saving the body of the mail in excel file, but the format is getting lost every time when the body of the mail is dumped in the excel file.
Any suggestions or right approach on how I can extract the tables/individual column values from the body? Solution with examples will be much appreciated?
The above technique gives sender’s name, subject and mail body in tabular form. But that’s not what I’m trying to achieve. I want to retain the formatting done in the mail body, to be more precise I want to retain the tables sent in the mail as it is so that I can extract the values in different columns for later use.
Here is te excel from the above operation: test.xlsx (9.1 KB)
The value in my table where choices are entered can have strings of different length, as a result, the other suggestions where they have mentioned to used string formatting to get the required columns turns out to be redundant.
Is there is any other approach to solve this problem? will Screen scrapping help if the format of the body always remains same(i.e the no of rows and columns remain the same )? Can I access various columns of the table and save them into excel or different variables?
There was another solution in the same link… i am posting the link for it below. Did u try that? Just copying the whole thing and pasting it to an excel? I tried this once when i wanted to extract a table from a word and put it into excel in the same way without any changes. I did a recording where i sent hot keys to copy(ctrl + c) the whole doc and opened an excel and pasted it (ctrl + v) and saved it.
@RishiVC1 Reply to your message:
Start process activity with path of .eml file. Also set outlook as default application to open eml file.
Use build data table to create an empty table with headers.
Use write range without excel application scope and write the table in .xslx excel file.
Now use excel application scope and add the previously saved excel file path … copy the content of outlook email… and save it on excel… press hotkey ctrl + s … it will save it … and do nothing…
Could you please tell me by looking at the screenshot attached, where I’m going wrong ? FolderLocation is the variable that contains the location of directory where .eml file is stored .
I tried this method also but challenge is defining the Selector. I use the Selector to be the file explorer window. But when i run the workflow i got the following error.
Thanks for your help! It’s all good now. My outlook launches and opens up the EML file. The culprit is using the wrong activity. Right activity to use is “Start Process”