The Generate fixed digit number masking activity allows you to generate a number with a specific number of digits.
|Table of contents|
To use the Generate fixed digit 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. Generating a fixed-digit number requires you to enter a number of digits that a generated number should have.
Additionally, you can set the EnforceUnique property to make sure every generated number is unique. This option must be used with care so that the number of table records is not greater than the possible numbers in the desired range.
In this example we want to generate a phone number that is a 8-digits number. First we place the Customer masking activity into opened Package.xaml and put the Generate fixed digit number masking activity within it. Once placed, we select the Phone property that we want to mask with generated numbers. We enter
8 as the number of digits, and we leave other properties as they are.
Figure 1: Generating fixed-digit number
|Property group||Property name||Description||Example|
|Input properties||DataItemProperty||The property to mask.||Choose property from the dropdown list|
|EnforceUnique||If true, random selection should select unique values.||
|NumberOfDigits||Number of digits to generate.||
|Input: Filter||Filter||Expression used for filtering records - only filtered items will be masked.||
|SkipDefaultValues||If true, default values will be omitted in masking (i.e. null values are not masked).||
|Input: Repeating||RepeaterId||The ID of the repeater that will be used to detect repeating and save results when masking item key repeats.||
|RepeatingKey||Key to use for repeating detection.||Write
|Misc||DisplayName||Display name of the activity in the workflow.||
|Result||Contains the masking definition object. It's a part of the masking infrastructure and should be ignored.||-|
BizDataX Documentation © Built by Ekobit. All rights reserved.