The Generate credit card number masking activity allows you to generate a credit card number of several different types.
|Table of contents|
To use the Generate credit card 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. Lastly, select the credit card number type you want to generate. Available credit card types are the following:
Additionally, you can set the EnforceUnique property to make sure every generated credit card number is unique.
In this example we want to mask credit card numbers in the CreditCard table, so first we place the CreditCard masking activity into opened Package.xaml and put the Generate credit card numbers masking activity within it. Once placed, we select the Number property. Lastly, we select the credit card number type that we want to generate. In this case we don't have a preference, so we choose Any credit card.
Figure 1: Generating credit card numbers
|Property group||Property name||Description||Example|
|Input properties||CreditCardType||Type of credit card that activity will generate.||Choose property from dropdown.|
|DataItemProperty||The property to mask.||Write
|EnforceUnique||If true, random selection should select unique values.||
|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.||-|