Generate Email

This masking activity allows you to generate e-mails using first and last names.

Table of contents
Usage
Example
Properties

Usage

To use the Generate e-mail masking activity, it must be placed inside a table masking activity or a similar activity that iterates over data. Once placed, select the property you want to mask. Next, enter the properties containing first and last names. Lastly, change the e-mail format to your desired value if the default format is not good enough for you purposes.

Example

In this example we want to generate e-mails for the Customer table. First we place the Customer masking activity into opened Package.xaml and put the Generate e-mail masking activity within it. Once placed, we select the Email property that we want to mask. Next, we select the FirstName and LastName properties as ones containing first and last names, respectively. We leave the e-mail format as it is, as it is good enough for our purposes.

Generating e-mails Figure 1: Generating e-mails

Properties

Property group Property name Description Example
Input properties DataItemProperty The property to mask. Write x => x.Email or choose property from the dropdown list
EmailFormat The format of the generated e-mail. "{firstName}.{lastName}@email.com"
FirstNameItemProperty The property representing the first name. record => record.FirstName
LastNameItemProperty The property representing the last name. record => record.LastName
Input: Filter Filter Expression used for filtering records - only filtered items will be masked. x => x.Email.Contains("@")
SkipDefaultValues If true, default values will be omitted in masking (i.e. null values are not masked). true or false
Input: Repeating RepeaterId The ID of the repeater that will be used to detect repeating and save results when masking item key repeats. EmailRepeater
RepeatingKey Key to use for repeating detection. Write x => CompositeKey.Create(x.Email) or choose properties from the pop-up window
Misc DisplayName Display name of the activity in the workflow. Generate e-mail
Result Contains the masking definition object. It's a part of the masking infrastructure and should be ignored. -