Retain HTML for inbound emails

scottangehr
Giga Guru

We would like to retain HTML formatting from inbound emails and insert them into the comments.

I placed the following code into the inbound email actions and I'm getting a result I don't expect.

BR: current.comments =   '[code]' + email.body_html + '[/code]';

Result:

2016-03-09 13:31:59 - Scott Angehr   Additional comments

lang="EN-US" link="blue" vlink="purple">

State

Type

Caller

Severity Level

Category

Short Description

Active

Project

Justin Thyme

Standard

ServiceNow

Create Timesheet app tied with Project Mgmt

Scott Angehr

ServiceNow Administrator

It includes part of the email header and I haven't been able to edit to exclude this.

Any thoughts would be greatly appreciated!

Thank you,

Scott

6 REPLIES 6

steven89
Giga Expert

Hi,

 

Did anyone come up with a solution for this? If so, would you mind sharing?

I have not come up with a solution.