I am trying to build process which collects data from email body and inserts them in excel file predefined columns. So far I have created process which collects emails and in Output shows email body data, but I don’t know how to add specified rows from body to excel spreadsheet table.
I would like to know what kind of activity I should use to add email body data excel file which?
At the moment I have in output email body message with all tags, but I have no Idea what kind of activity should I use further to collect data from email body and add them to xls file.
I can also share xaml file if needed.
Ok so i tried out your example.
First the first image you pasted does not have the same data as the mail format you have pasted above.
Assuming you have the second one to do,
here is what i did.
Same Get IMAP Mail Messages
Same Loop forEach listOfMails
To get the Email Date
a. headerdate(string) = mail.Headers(“Date”)
b. emailDate(string) = Convert.ToDateTime(headerdate.Substring(headerdate.IndexOf(“,”)+2,11)).Date.ToString(“dd.MM.yyyy”)
So this may not be your full solution but i wuld need some moe details to understand the exact mail body you have.
Once we get till the above part of replace the write to excel is simple
Hello Nadim.
I created process like you said but I didn’t get results like you provided in screens *Assign Closed *26.10.2018 email body - Copy.xaml (8.2 KB)
Hi sir , Am using regex and match the particular value in gmail body but i want to know the split method of particular mail please will you send me the example mail spilt method
Thanks in Advance