Generate numbered string

The Generate numbered string masking activity allows you to generate numbered strings.

Table of contents
Usage
Example
Properties

Usage

To use the Generate numbered string 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. Generating a numbered string requires you to enter the format of the masked value and optionally, a number generator that is going to be used to generate values.

Example

In this example we want to generate values that consist of a random number between 0 and 100 and the key word test. First we place the Address masking activity into opened Package.xaml and put the Generate numbered string masking activity within it. Once placed, we select the City property that we want to mask with generated numbered strings. We enter "{0} test" as the format and new RandomNumberGenerator(0,100) for the number generator. .

Generating numbered strings Figure 1: Generating numbered strings

Note: Use the Pick place from list masking activity to set the appropriate values in the City column after doing the example above.

Properties

Property group Property name Description Example
Input properties DataItemProperty The property to mask. Write item=>item.City or choose property from the dropdown list
EnforceUnique If true, random selection should select unique values. true or false
Format String format used to generate values. "{0} test"
NumberGenerator NumberGenerator used to generate values. new RandomNumberGenerator(0,100)
Input: Filter Filter Expression used for filtering records - only filtered items will be masked. x=>x.AddressID<=8
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. GenerateNumberedStringRepeater
RepeatingKey Key to use for repeating detection. Write item => CompositeKey.Create(item.City) or choose properties from the pop-up window
Misc DisplayName Display name of the activity in the workflow. Generate numbered string
Result Contains the masking definition object. It's a part of the masking infrastructure and should be ignored. -