Generate phone number

The Generate phone number masking activity allows you to generate phone numbers for specific countries.

Table of contents
Usage
Example
Properties

Usage

To use the Generate phone number 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 country code of the country you want the generated phone numbers to be related to. Note that the country code needs to be a string value.

Example

In this example we want to generate US-related phone numbers for the Customer table. First we place the Customer masking activity into opened Package.xaml and put the Generate phone number masking activity within it. Once placed, we select the Phone property that we want to mask. Next, we enter "US" as the country we want the company names to be generated for.

Generating phone numbers Figure 1: Generating phone numbers

Properties

Property group Property name Description Example
Input properties Country The country you want your data to be from. "US"
DataItemProperty The property to mask. Write x => x.Phone or choose property from the dropdown list
MaximumLength Maximum phone number length. 20
MinimumLength Minimum phone number length. 8
Input: Filter Filter Expression used for filtering records - only filtered items will be masked. x => x.Phone.Length < 30
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. PhoneNumberRepeater
RepeatingKey Key to use for repeating detection. Write x => CompositeKey.Create(x.Phone) or choose properties from the pop-up window
Misc DisplayName Display name of the activity in the workflow. Generate phone number
Result Contains the masking definition object. It's a part of the masking infrastructure and should be ignored. -