pitt
(pitt phunsanit)
February 20, 2019, 10:56am
1
i used “Get outlook mail messages” get html email inside outlook but “mail.Body” return string without html tag. may i get real message body?
Main.xaml (11.4 KB)
nimin
(nimzz)
February 20, 2019, 11:14am
2
Hi @pitt ,
If you would like to get mail body as html, Please use mail.Headers("HTMLBody") instead of mail.Body
Hi @yaniketz ,
You are getting a blank mail body may be because it’s in html format, other than plain text.
If so, read the html mail body by mail.Headers("HTMLBody") and convert it to plain text using the regular expression, System.Text.RegularExpressions.Regex.Replace(mail.Headers("HTMLBody"),"(<.*?>)|({.*})","") or you can use the key mail.Headers("PlainText") .
Please have a look at the workflow. HTML_to_plaintext.xaml (7.1 KB)
Warm regards,
Nimin
Warm regards,
Nimin
MuraliG
February 20, 2019, 6:30pm
3
When the body of the mail is a table, how to extract them in the same format. The previous threads indicate use of “indexof”, Some help in using the functions will be appreciated.
pitt
(pitt phunsanit)
February 21, 2019, 3:39am
4
@nimin @MuraliG
thank you. for knowledge.