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.
Troubleshooting 'In-reply-to' emails that are being classified as 'new' and do not find the target record - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Troubleshooting 'In-reply-to' emails that are being classified as 'new' and do not find the target record
KB0759068

Troubleshooting 'In-reply-to' emails that are being classified as 'new' and do not find the target record


2485 Views Last updated : Feb 12, 2025 public Copy Permalink
KB Summary by Now Assist

Issue

Scenario:

  1. User A sends email to a ServiceNow instance, and cc's User B.
  2. User As email creates a record in the target table, but because the insert was on a custom variable, not current.insert(), the target table and target record fields in the email record are not filled.
  3. User B clicks 'reply' in their email program, and sends it to User A and the instance.
  4. User B's email arrives in the instance (and contains an In-Reply-To header referencing User A's email, which exists in the system from step 1.
  5. Email from step 3 above, classifies as a 'NEW' receive type and does not find the target record.

 

 

Release

Applies to all versions.

Cause

On the very first email sent in, the inbound action must set the 'target' and 'target table' in the email. Then when the second email comes in, it has the target to tie back to the ticket associated. If a custom variable is used on the inbound action, it will never set the target and target table of the email.  If an in-reply-to email is sent in, it will only use the first email matching and if there is no target, it will classify as a new and run the new inbound actions.

Resolution

  1. On the 'New' inbound action being used to process the first email sent in, it needs to use the 'current.insert()' variable in the script.  Do not use a custom variable.  

    Note: custom variables do not update the source 'sys_email' record with target and target table.  This affects the in-reply-to process for 'update' for the second email sent in.
  2. Example:

Message-ID from Email 1:<XXXXXXXXXXXXXXXX@xxxxxxxxxx.Server.outlook.com>

 

Headers from Email 2:
References:<XXXXXXXXXXXXXXXX@xxxxxxxxxx.Server.outlook.com>
In-Reply-To:<XXXXXXXXXXXXXXXX@xxxxxxxxxx.Server.outlook.com>

 

In order for Email 2 to find the target record, it needs to reference it from Email 1.  For this to work, it's critical for Email 1 to contain the target record reference.


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.