email.body_html does not contain complete email body in Inbound email actions

Sture
Tera Contributor
I see a strange thing that email.body_html and email.body_text does not contains the complete email body when using in Inbound email actions. According to the picture in article, Parsing Inbound Email, it seems that it should do that!
 
Can someone guide me to how this should work, are there any properties or similar that needs to be set?
 
Description:
We have an email that we sends out and when we receive the answer for that, the content of email.body_html is only including the answer from the receiver, not what we originally sends out, why?
 
I have checked this via writing to the log using  very simple code:
(function runAction(/*GlideRecord*/ current, /*GlideRecord*/ event, /*EmailWrapper*/ email, /*ScopedEmailLogger*/ logger, /*EmailClassifier*/ classifier) { 
  var email_matrix = email.body_html.indexOf('XXX');
logger.log("email.body_text:" + email.body_text + " email.body_html:"  + email.body_html );
 current.update();
})(current, event, email, logger, classifier);
1 ACCEPTED SOLUTION

Kieran Anson
Kilo Patron

Hi Sture,

When an email is parsed, only the info up-to the separator is considered. This is largely for performance benefits as emails can be extremely nested and eventually truncated.

 

Seperators are stored in sys_email_reply_separator. They're used to cut off before the next email begins, something that isn't standardised across email clients.

View solution in original post

2 REPLIES 2

Kieran Anson
Kilo Patron

Hi Sture,

When an email is parsed, only the info up-to the separator is considered. This is largely for performance benefits as emails can be extremely nested and eventually truncated.

 

Seperators are stored in sys_email_reply_separator. They're used to cut off before the next email begins, something that isn't standardised across email clients.

Sture
Tera Contributor

Hi Kieran, that did the trick, Thank You! I checked the separators table, sys_email_reply_separator.list, and then disable the one for outlook causing the problem. I  Need to understand/check the performance benefit  of this before go further.