Is EMAIL.BODY_TEXT just that?

tobrien
Kilo Guru

Hi All,

We're on Helsinki...

I have an Inbound Email Action which attempts to 'parse' the body of an email.

In the emails' details the body is jam-packed full of the HTML... but the script in the Action (trying to parse the html using email.body_text) seems to get literally the text.

Is there a means to get the raw html, tags and all??

1 ACCEPTED SOLUTION

Brian Dailey1
Kilo Sage

Hi Tony,



I believe what you are looking for (message with all the html markup) can be found in just email.body_html.   Both fields are available (body_html and body_text) on the email object.   See if that has what you are looking for.



If not, let us know.




Thanks,


-Brian


View solution in original post

4 REPLIES 4

tobrien
Kilo Guru

Got it ...



body_html




What a surprise !


Hi Tony,



Thanks for marking that correct, even though you beat me to the punch.   With every correct answer, I like to throw in a free reference... it's easier than sending free company pens via email.   Here you go:   Accessing email objects with variables



You might find some other helpful hints in there while you are working with inbound actions.




Thanks,


-Brian


Hi Brian -- You're quite welcome and thanks for the reference !


Brian Dailey1
Kilo Sage

Hi Tony,



I believe what you are looking for (message with all the html markup) can be found in just email.body_html.   Both fields are available (body_html and body_text) on the email object.   See if that has what you are looking for.



If not, let us know.




Thanks,


-Brian