How Block an Email for Inbound Action

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2017 01:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2017 07:06 PM
Hi Bryant,
You can enclose the script that is within the inbound action Create Incident with the following condition:
if (email.origemail != "footprints@mycompany"){
// the original inbound script goes here
}
Thanks,
Berny

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2017 11:18 AM
I inserted the above code and it still created the incident. Am I suppose to put a "then" statement?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2023 03:45 AM
1. Navigate to the module Email Filter as shown below:
a) Click on the module "Email Address Filters" as shown below:
b) Now click on New and define the Email Address and make sure to select Type as Deny as shown below:
2nd Approach:
Create a system property where you store email addresses which you don't want to create an incident, then check that property from the condition on the inbound action.
Utilize this Property and check in condition of Inbound action like below:
if(gs.getProperty('Property Name').indexOf(email.from)<-1)
Hope this helps. Please mark the answer as correct/helpful based on impact👍🇮🇳
Chiranjeevi
ServiceNow Developer | | ITSM | | ServiceNow Discovery | | Event Management | | Service Mapping | | CMDB
Please mark as Correct Answer/Helpful, if applicable.