Generate number sequence

The Generate number sequence masking activity allows you to generate numbers in a sequence.

Table of contents


To use the Generate number sequence 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 number sequence requires you to enter the number the sequence should start from, as well as the increment that defines the following members of the sequence.


In this example we want to generate street numbers, but we only want even numbers greater than one hundred. First we place the Address masking activity into opened Package.xaml and put the Generate number sequence masking activity within it. Once placed, we select the Number property that we want to mask with generated numbers. We enter 100 as the start of the sequence and 2 as the increment so we only get even numbers, and we leave other properties as they are.

Generating numbers in a sequence Figure 1: Generating numbers in a sequence


Property group Property name Description Example
Input properties DataItemProperty The property to mask. Write x => x.Number or choose property from the dropdown list
Increment Increment by which each newly generated number will be greater than the previous one. 2
Start First number to generate. 1
Input: Filter Filter Expression used for filtering records - only filtered items will be masked. x => x.Number.IsBetween(1, 1000)
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. GenerateNumberSequenceRepeater
RepeatingKey Key to use for repeating detection. Write x => CompositeKey.Create(x.Number) or choose properties from the pop-up window
Misc DisplayName Display name of the activity in the workflow. Generate number sequence
Result Contains the masking definition object. It's a part of the masking infrastructure and should be ignored. -