Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Email validation to accept specified domain

gnunez
Kilo Guru

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

1 ACCEPTED SOLUTION

SanjivMeher
Mega Patron

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.

View solution in original post

5 REPLIES 5

Mariano Lemus
Mega Guru

Bringing this topic up to date, there are whitelist and blacklist properties that can be set to resolve the requirement.

 

M