**_ARSlist: "Where the Answers Are" and have been for 20 years_
The easiest way I can think of is to do the following
Action 1: Set a Display Only character field (for this example I am calling it zTemp1) to UPPER the TO email address field.
Action 2: Set zTemp1 = REPLACE($zTemp1$, “@TEST.COM”, “”)
Filter 2: If zTemp1 like “%@%” show error
Basically after removing all occurrences of @test.com in the string if you have any @ left then there is at least 1 address that does not meet your criteria.
From: Action Request System discussion list(ARSList) [mailto:arslist@ARSLIST.ORG] On Behalf Of syed Ziyan
Sent: Monday, May 08, 2017 1:17 AM
Subject: External Email Restriction and Validation check
We would like to implement one validation check while sending email to External email address via CTM:Email System form (Email System Link in Incident Form > Opens this form)
Requirement is to validate external email from list of emails
We can have a AL on button "Send Email Now" on this form (CTM:Email System) .. but cant prepare the substring logic of verifying the wrong/external email address out of list of email addresses.
Looking forward your help..