whitin the project I am working on I need to save within variable with type System.Data.DataTable data from the table placed within the Outlook e-mail message body. I have not found the way how to do it.
Table is simple - there are 6 columns, 4 rows, no merged cells.
So, I will be thankfull if someone can advice how to do it.
- Save the mail as WebPage(In outlook you can save the mail as a file then open it and use save as)
- Open the saved WebPage
- Then extract the data using extract datatable
Not sure how you can do it if you’re not using outlook.
akhi_s27 thank you for your answer!
I have already tried following:
- saved mail message as html file using UiPath.Mail.Activities.SaveMail
- opened saved html file using UiPath.Core.Activities.OpenBrowser
As a result of this html file is being opened but it do not look like e-mail message - table is deformated. It looks like html elements are not presented correctly. So, unfortunately opened html cannot be used to scrape data table. As I am new user it looks like in the forum I cannot upload files to add an example of how html is being opened by UiPath.
akhi_s27, have I understood correct that steps I made are steps you proposed?
Maybe there are solution for this or another way how to extract data table from e-mail body?
Interesting that if I am manualy in Outlook saving mail message as html file and then opening the file in IE, html file is being opened correctly - such html could be used for data table scraping. So, the problem with correct saving/opening of html is only if it is being done by UiPath.
Anybody have ideas why it is so?
Hi VladisG did you find the solution I have same issue …
Hi, hkjobs1988, no I have not found solution.
One expert adviced me following via e-mail - “I looked at the problem – and I couldnt get the save email to save the email in a resonable html format. You can however open outlook, open the mail and save to html – that will be in a perfectly readable format.” I have not tried yet, but going to try.
If you or someone else found solution please let me know here.
Can you change the data and attach the mail message here?
as I am new user it looks like in the forum I cannot upload files.
I have example mail message, but how can I share it with you?
Any solution for this