Inbound Email Action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi Community,
Mail triggered to the group , but the ritm was not created . So i checked in email logs, from there its showing logs like "Skipping script 'RITM Creation -AJG', email is type 'reply', which does not match Inbound Email Action's type 'new'".
How can ServiceNow is considering this email as reply instead of new . Can anyone please help on this. @Ankur Bawiskar
Regards,
Tulasi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi @tulasi8,
This is actually a well documented quirk of how the platform decides email.type before any Inbound Email Action even runs. ServiceNow checks three things in order on the inbound sys_email record: first a watermark match (the hidden "Ref:MSG..." string appended to outbound notifications), then the In-Reply-To/References headers against a previously sent Message-ID, and only if both of those come up empty does it fall back to scanning the subject and body text for a literal record number pattern (INC0010007, RITM0010398902, and so on) that exists in the system. If that bare number turns up anywhere in the text, the message gets stamped type reply, full stop, regardless of whether the subject carries RE:/FWD: and regardless of whether the record it matched is Closed.
That is exactly what's happening in your screenshot. The body reads "Reopening this ticket with full context (please reference closed ticket) RITM10398902", plain text, no threading, no In-Reply-To header pointing back to anything. But that literal RITM number is enough to flip email.type to reply, and your action "RITM Creation -AJG" is scoped to type new, so it gets skipped with exactly the log line you posted.
A few things worth checking or doing:
- sys_email record: open the logged email and check the Watermark field. If it is blank, you have confirmed this is the body-text match path, not a genuinely threaded reply.
- Type field: on sysevent_email_action the Type choice is single-select (None, New, Reply, Forward, Forward Unknown), there is no multi-value option, so you cannot just add reply alongside new on the same action.
- Companion action: clone this action with Type set to None (or Reply) and, inside the script, branch on email.type explicitly, only running the cart/RITM creation logic when the record that was matched is actually Closed or Resolved, so you do not accidentally reopen or duplicate against a genuinely active ticket.
- Sender-side: since any bare record number in the body triggers this, ask requesters to avoid pasting old ticket numbers as plain text when kicking off a brand new request, or have them reference it as an attachment instead of inline text.
Worth noting: KB0622994 covers a related but distinct known issue, a watermark persisting when someone clicks Reply and edits the message, so if you see that pattern elsewhere it needs a different fix than this one.
Thank you,
Vikram Karety
Octigo Solutions INC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
the inbound action is of what type? New or Reply?
Are you sure the email which came doesn't contain any watermark?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
25m ago
Hi @tulasi8
Refer KB: KB0535515 Inbound Email Action Type is not Matched
Resolution
Troubleshooting
- Open the email record.
- Right-click the form header to change the view to Inbox.
- Review the related log entries. These identify a reason an Inbound Action was skipped.
Troubleshooting Reply Inbound Actions
As shown in the article in the overview, an email is classified as a reply only if it matches multiple criteria. If your inbound action of type Reply is not matching on an email you expect it to, it is possible your ServiceNow instance has actually classifiied the email as New or Forward because other Reply conditions do not exist in the email. To diagnose, check the following:
- Open the email record in the Inbox view and review the log entries.
- Check that the email subject's reply prefix is one of those listed in the glide property, glide.email.reply_subject_prefix.
- If the email has a watermark (for example, Ref:MSG000001), check that it exists and refers to a record that exists in the same table as your Inbound Action's target table.
- If the email has a record number in the subject, check that it exists and is in the same table as your Inbound Action's target table.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti