How to restrict specific email Domains (like gmail.com,company.com) from creating Incidents through Inbound email action?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2021 03:16 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2021 03:40 AM
Hi,
You can use email filters to ignore the emails
you can also block it based on the domain
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2021 03:45 AM
Hi
I have created a email filter to block email from gmail domain, but even after that it is allowing to create incidents.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2021 03:48 AM
Hi,
I haven't explored much on this
but you can try to use script in the inbound action then
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2021 04:00 AM
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.