E2F: Data Wipe
Leverage the Date Wipe apex action to identify and wipe Personally Identifiable Information (PII) found in the incoming email message.
Inputs
Email Message
The Email Message record.
Outputs
Email Message
The redacted Email Message record.
PatternNames
A unique list of the pattern names identifed.
Categories
A unique list of the categories identified.
String Found
A unique list of the matching strings found.
Flag
A boolean to indicate if patterns found that are defined as Flag Only.
isSuccess
Set to True if the apex action was successful. Set to False if an error was encountered.
Error Message
If status is “Fail”, the message of the error encountered
The Data Wipe apex action is controlled by two Custom Metadata Types; Data Wipe and Data Wipe Field.
Data Wipe CMDT
The Data Wipe CMDT identifies the regex patterns to execute when checking for PII.

Label
Unique Pattern Name
Category
A Category definition for the specific Regex Pattern. For example, Credit Card, Social Security Number, etc.
Action
The action to take when the pattern is found. Mask will apply the mask defined in the Masking Logic section. Flag will identify the pattern and set the flag response. No redaction will take place.
Is Active
Indicates if the rule is currently active and should be evaluated when the apex action executes.
RegEx Pattern
The regex Pattern to be applied
Notes
Basic informational field.
Mask Type
Full - The mask character is applied to the entire pattern found.
First X Characters - The mask character is applied to the first x characters.
Last X Characters - The mask character is applied to the last x characters.
Mask Character
The mask character to apply. A null value will default to '*'.
Number of Characters
The number of character to apply when leveraging the Last X Characters or First X Characters Mask Type option.
Ignore Non AlphaNumberic Characters in Count
When counting, include or exclude non alpha numeric characters.
DataWipe Fields CMDT
The Data Wipe Fields CMDT identifies the Email Message fields that will be checked when checking for PII. The fields identified must exist in the EmailMessage object and must have a type of String.
