How to restrict specific email Domains (like gmail.com,company.com) from creating Incidents through Inbound email action?

Servicenow Stud
Mega Contributor

Hi All,

I need to restrict the inbound action from creating incidents, from untrusted domains. I have tried "Email Address filters" method, whitelist and blacklist, but they are not working. Incident is getting created from blacklist domain also.

Thank you.

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

You can use email filters to ignore the emails

Email filters

you can also block it based on the domain

Block emails from domains

You can also use the condition field in the Inbound email action

Ignore if the email came from gmail.com

email.from.indexOf("@gmail") == -1

Regards
Ankur

 

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi @Ankur Bawiskar ,

I have created a email filter to block email from gmail domain, but even after that it is allowing to create incidents.

find_real_file.png

find_real_file.png

2. I have tried by giving condition in the inbound email action, but if we have multiple list of domains that needs to be blocked, we can't list them in condition field. So searching for other way Ankur.

Thank you.

Hi,

I haven't explored much on this

but you can try to use script in the inbound action then

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi,

Using this in script will become hectic in future, because don't know how many domains will we have to exclude or include. Thanks for suggestions Ankur. Will wait for any other suggestions on this from another community members.