- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2018 02:43 PM
Hello all,
I need to come up with an email validation to only take the domain @calstate.edu. I found a great post in the community that excludes gmail and yahoo, but I'd think it would be easier to have a script that specified email should include @calstate.edu instead of continually stating yahoo, gmail, outlook, msn, etc. are all excluded.
Kind of got started using the following post found at: https://community.servicenow.com/community?id=community_question&sys_id=bd748f69dbd8dbc01dcaf3231f96...
Any help is greatly appreciated!
Thanks,
Grace
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2018 02:56 PM
In the inbound action, you can add below condition to exclude emails from other domains
if (email.origemail.indexOf('@calstate.edu')>-1)
{
// Process my inbound actions
}
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2020 04:18 PM
Bringing this topic up to date, there are whitelist and blacklist properties that can be set to resolve the requirement.
M