Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Incoming emails (sys_email) have body and body_text populated from the incoming messages - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Incoming emails (sys_email) have body and body_text populated from the incoming messages
KB0681056

Incoming emails (sys_email) have body and body_text populated from the incoming messages


7136 Views Last updated : Jul 22, 2025 public Copy Permalink
KB Summary by Now Assist

Issue

Incoming messages have a body and body text. This information is extracted from the email messages themselves. However, if either the HTML or the text part is not available, that part of the message is auto-populated. When the message body or body text does not contain what we expect, sometimes is difficult to track.

Symptoms: 
You would like to review the source of the body and body text when
  • The HTML body is not showing as expected
  • The body text contains HTML tags
  • The body text does not contain returns (enter) or breaks.

Cause

Incoming emails are proceeding as follows:

Contains HTML

Contains plain text

Typical content-type

Results

Yes

Yes

multipart/mixed

body and body_text are taken from the incoming email

Yes

No

text/html

body is taken from incoming email.
body_text is auto-generated

No

Yes

text/plain

body_text is taken from the incoming email.
body is auto-generated. There is a comment on the html that indicates it was auto-generated.

No

No

multipart/mixed

Inconclusive. Some emails could contain both body and body_text blank.

Resolution

To validate the source of the email body and body_text, check the email headers or the content-type set.

e.g. If the content-type is text/plain, the email body_text will be populated from the email itself, but the body (body_html) part will be auto-generated.

content type

 

Note: Pay special attention to the email content-type. It indicates whether the body or/and body_text was auto-generated or retrieved from the email.

 

 

I am afraid most solutions rely on getting the clients to sent the content type correctly, or the data sent correctly. Alternatively, you should be able to workaround the incorrect data on either body or body_text using scripting.


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.