Skip to content

Email Rules in ServiceNow: Setup and Order Guide (2027)

Learn how email rules and email service rules in ServiceNow execute, from Email Filters and Inbound Email Flows to Inbound Actions and Stop Processing.

By · Updated · Published

At the keyboard--Daily Image 2011--January 21--2000th Flickr upload!
Photo by Rochelle Hartman · CC BY 2.0 · via Flickr

What are email rules and email service rules in ServiceNow?

Email rules and email service rules in ServiceNow govern how an instance receives, inspects, and converts incoming messages into operational records. Modern IT service management relies heavily on email integration to capture user inquiries, automated monitoring alerts, and third-party vendor updates. Without structured processing directives, inbound messages can clutter mailboxes, trigger infinite notification loops, or create duplicate incidents. ServiceNow structures email automation across multiple distinct layers to ensure every communication reaches the appropriate operational table securely.

Inbound email handling begins the moment an external mail server delivers a message to the ServiceNow mail infrastructure. The platform does not simply dump incoming messages into a single processing queue. Instead, it evaluates incoming messages against sequential filtering and parsing stages. Administrators configure rules to inspect transmission headers, subject lines, sender identities, and body content. Depending on the rule definitions, the system can mark a message as ignored, route it to a junk mailbox, or extract field values to insert new records.

Understanding the difference between email rules and email service rules helps platform teams maintain reliable email automation. Broad email rules encompass pre-processing security filters and gateway address restrictions that protect instance integrity. Specific email service rules, historically known as inbound email actions and modern inbound flows, handle transactional service logic. These service rules determine which records are generated, which assignment groups receive work, and how updates map to existing enterprise tasks.

Organizations operating across the United States, the United Kingdom, and Europe must configure these processing layers deliberately. Misconfigured email rules can cause severe operational delays, such as dropped service requests or unassigned high-priority alerts. By establishing clear processing boundaries, administrators ensure inbound messages translate into accurate tasks while discarding automated spam and redundant delivery notices.

How does ServiceNow evaluate incoming email hierarchy?

Flow chart of incoming email hierarchy: Email Filters run first, followed by Inbound Email Flows, and finally Inbound Email Actions by numerical Order.
ServiceNow inbound email execution hierarchy

We compiled the specifications and execution hierarchy for inbound email processing rules in ServiceNow from official ServiceNow platform documentation and support knowledge base articles on November 28, 2026. ServiceNow evaluates incoming email through a strict three-stage execution hierarchy to guarantee security, modern workflow precedence, and deterministic processing.

Processing LayerExecution StageNavigation ModulePrimary FunctionStop Processing Behavior
Email Filters (sys_email_filter)Pre-processing gatekeeperSystem Mailboxes > Administration > FiltersEvaluates headers, subjects, and senders to flag spam or ignore messagesIf marked as Ignored, email processing halts entirely
Inbound Email FlowsPrimary action executionProcess Automation > Flow DesignerLow-code trigger evaluation creating or updating records without script logicIf an inbound flow executes, it prevents downstream Inbound Actions from running
Inbound Email Actions (sysevent_in_email_action)Secondary action executionSystem Policy > Email > Inbound ActionsEvaluates email type, watermark, and conditions to run JavaScript updates on target tablesEvaluates by numerical Order; stops if Stop processing is enabled

The execution hierarchy begins at the pre-processing gatekeeper layer using the Email Filters plugin (com.glide.email_filter). This layer examines raw message attributes before any business records or tasks are touched. If an incoming message matches filter criteria configured to ignore the message, the platform stops evaluation immediately. Discarded messages remain stored in the core sys_email table with an ignored state, preserving an audit trail without consuming application processing resources.

When a message passes initial filtering, ServiceNow evaluates modern Inbound Email Flows built within Flow Designer. Flows represent ServiceNow's modern standard for email automation, providing visual configuration and direct access to enterprise actions. If an inbound email flow matches the message criteria and executes, ServiceNow consumes the email trigger and bypasses legacy inbound actions completely.

If no inbound email flow intercepts the message, ServiceNow evaluates legacy Inbound Email Actions stored in sysevent_in_email_action. The engine sorts active inbound actions by numerical Order and evaluates them one by one. The first action meeting the specified conditions executes its script logic. Downstream inbound actions execute only if the active action permits continued processing.

How do Email Filters block unwanted incoming messages?

Flow chart of configuring an email filter: navigate to Filters, define conditions, add Filter Actions, set Action type to Mark as Ignored or Move to Junk, and save record.
Configuring a ServiceNow email filter

Email filters run before inbound email actions to filter out unwanted messages like spam, bounce-backs, and automated replies based on headers, subjects, or senders. Unfiltered mailboxes frequently receive automated out-of-office notifications, calendar updates, and unauthenticated marketing blasts. If left unchecked, these messages trigger inbound record creation, cluttering task tables with invalid tickets. Email filters establish an automated protective boundary at the instance threshold.

A critical configuration pitfall often causes unexpected processing behavior during filter setup. As detailed in official ServiceNow support guidance, email filter conditions can match an inbound email, but the email will still be processed by inbound actions if no filter actions are defined on the email filter record. Administrators frequently create conditions to identify automated emails but forget to attach a corresponding action. In this scenario, the engine confirms the match but takes no protective measure, allowing downstream rules to process the message.

According to ServiceNow support documentation, filter actions determine how ServiceNow reacts when filter conditions evaluate to true, and administrators can define filter actions either through the related list or via the Action Script field on the email filter record. Standard filter actions include setting the message state to Ignored or moving the message directly to Junk. When an administrator requires custom logging or complex evaluation, the Action Script field provides programmatic control over the outcome.

To establish an effective email filter, administrators should follow a structured sequence:

  1. Navigate to System Mailboxes > Administration > Filters and select New.
  2. Enter a descriptive name and define the filter conditions using headers, subject lines, or sender criteria.
  3. Open the Filter Actions related list and select New to attach an explicit handling rule.
  4. Set the Action type to Mark as Ignored or Move to Junk to ensure the message halts before reaching inbound actions.
  5. Save the record and verify in email logs that matching messages update to the Ignored state.

How do Inbound Email Actions process new emails and replies?

Inbound email actions classify incoming messages as New, Reply, or Forward, using watermarks or subject prefixes to match replies to existing target records. When an email reaches the inbound action engine, ServiceNow inspects the message for unique identification markers. A message containing an official watermark (such as ref:msg) or a recognized record number in the subject line is classified as a Reply. Messages forwarded by users are classified as Forward, while messages lacking prior references are classified as New.

Classification determines which inbound actions are eligible to run against the message. New messages typically trigger actions designed to create new records on core tables such as incident, change_request, or sc_req_item. Reply messages trigger actions configured to update existing records, appending email body content to work notes or customer-visible comments. Forward messages allow instances to create new records while capturing the original sender details from the forwarded message body.

Once ServiceNow selects a matching inbound action, it runs server-side JavaScript to execute table updates. Server-side JavaScript scripts in Inbound Email Actions use current and email objects to create or update records in target tables such as incident or change_request. The current object represents the database record being inserted or updated, while the email object provides direct access to message attributes including email.subject, email.body_text, and email.from.

Administrators configure inbound action scripts to map incoming information into target record fields. In an inbound action targeting the incident table:

JavaScript
current.short_description = email.subject;
current.description = email.body_text;
current.insert();

In this script, current.short_description receives the incoming subject line, while current.description stores the full message body. The current.insert() method commits the new record to the database, ensuring complete traceability between the incoming email and the resulting enterprise task.

How do you stop processing and control rule order?

Inbound actions are evaluated sequentially from lowest to highest Order value. ServiceNow uses the Order field to determine the exact evaluation sequence when multiple inbound actions share the same target table or message type. Actions configured with lower numerical Order values evaluate before actions assigned higher numerical values. Assigning distinct, incremented order numbers prevents overlapping evaluations and ensures predictable execution paths across diverse email workflows.

Without controls to stop execution, an incoming email could satisfy multiple inbound actions, resulting in duplicate incidents or conflicting updates. To prevent redundant processing, ServiceNow allows administrators to halt rule evaluation once a matching action executes. Inbound action documentation confirms that checking the Stop processing checkbox or setting event.state = 'stop_processing' in an inbound action script halts subsequent lower-priority inbound email actions from executing.

When configuring inbound actions through the platform interface, administrators can check the Stop processing checkbox directly on the form. If an action requires conditional stopping based on script calculations, adding the command within the script provides identical control:

JavaScript
event.state = "stop_processing";

Setting event.state to stop_processing immediately signals the processing engine that the message has been fully handled. ServiceNow updates the email record state to Processed and terminates rule evaluation. Lower-priority inbound actions with higher Order values are skipped entirely, protecting task tables from duplicate record creation.

When should you use Flow Designer instead of Inbound Actions?

Inbound email flows created in Flow Designer take precedence over traditional inbound email actions and execute first when an incoming email is received. As ServiceNow modernizes its workflow platform, Flow Designer has become the recommended mechanism for configuring inbound email automation. Flow Designer replaces complex scripting with a visual, natural-language interface that simplifies maintenance and speeds up deployment.

Flow Designer inbound triggers allow administrators to parse incoming messages, extract structured data, and trigger multi-step workflows without custom JavaScript. Flows natively integrate with subflows, approvals, notifications, and integration spokes. Because inbound flows execute before inbound actions, organizations can migrate email logic gradually. A newly built flow intercepts its designated messages immediately, while existing legacy inbound actions continue servicing remaining processes.

Legacy Inbound Email Actions remain valuable for specialized scenarios requiring complex server-side scripting or granular manipulation of the current record object. However, for standard record creation, catalog requests, and task routing, Flow Designer provides superior visibility, testing tools, and execution tracking. Enterprise teams should prioritize Flow Designer for new email service rules while using Email Filters as the universal gateway gatekeeper.

More guides in Email Security.

Frequently asked questions

What is the difference between email filters and inbound email actions in ServiceNow?
Email filters act as a pre-processing firewall to ignore or junk unwanted messages before any record creation occurs. Inbound email actions evaluate accepted messages to create or update records such as Incidents.
Why are inbound emails processed even when email filter conditions match?
As documented in official ServiceNow support guidance, an email filter must have a Filter Action or Action Script defined. Without a filter action, ServiceNow detects the condition match but does not ignore the message, allowing downstream inbound actions to run.
What does the Stop Processing option do in ServiceNow inbound email actions?
Checking Stop processing or setting event.state = 'stop_processing' tells the email engine to immediately stop evaluating lower-priority inbound actions once the current action completes.

Sources

  1. ServiceNow email filters run before inbound email actions to filter out unwanted messages (www.servicenow.com)
  2. Email filter conditions can match an inbound email, but the email will still be processed (support.servicenow.com)
  3. Inbound email actions classify incoming messages as New, Reply, or Forward, using watermar (www.servicenow.com)
  4. Server-side JavaScript scripts in Inbound Email Actions use current and email objects to c (www.servicenow.com)
  5. Inbound email actions are evaluated sequentially from lowest to highest Order value. (www.servicenow.com)
  6. Inbound email flows created in Flow Designer take precedence over traditional inbound emai (www.servicenow.com)