I'm trying to determine if there is a way to prevent cases from being created from Email2Case if the origination email address comes from a certain domain. So for example, if I'm talking about the domain hotmail.com, I want to create a trigger that prevents a new case from being created by Email2Case.
Would I need to create a new field that "finds" the domain portion of the email address? I thought there might be a way to do a "like" or "contains" but I can't find any logic that supports either of those.
Thanks in advance for any suggestions you guys might have!