We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Inbound Action copy body to description

brianlan25
Kilo Patron

I have an inbound action where I need to put the email body into the description field.  How can I get it without all the HTML code but not loose the format?

1 ACCEPTED SOLUTION

brianlan25
Kilo Patron

I was able to do it with this code.  We where only getting the <br/> as the html in the body.

var emailBody = email.body_html.toString().replace(/<br\/>/g, "\n");
current.description = emailBody;

View solution in original post

5 REPLIES 5

brianlan25
Kilo Patron

I was able to do it with this code.  We where only getting the <br/> as the html in the body.

var emailBody = email.body_html.toString().replace(/<br\/>/g, "\n");
current.description = emailBody;