Generate PAN

The Generate PAN masking activity allows you to generate permanent account numbers (PANs).

Table of contents
Usage
Example
Properties

Usage

To use the Generate PAN 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, enter the total number of digits that the PAN should have and the number of first digits that should be skipped if value already exists.

Example

In this example we want to mask numbers in the Account table with permanent account numbers, so first we place the Account masking activity into opened Package.xaml and put the Generate PAN masking activity within it. Once placed, we select the Number property, and enter 10 as the total number of digits that a PAN should have and 2 as the number of first digits that should be skipped if a value already exists.

Generate PANs Figure 1: Generating PANs

Properties

Property group Property name Description Example
Input properties DataItemProperty The property to mask. Write item=>item.Number or choose property from the dropdown list.
EnforceUnique If true, random selection should select unique values. true or false
NumberOfDigits Number of digits in PAN. 10
NumberOfDigitsToSkip Number of first digits to remain unmasked. 2
Input: Filter Filter Expression used for filtering records - only filtered items will be masked. x => x.PAN.EndsWith("000")
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. PANRepeater
RepeatingKey Key to use for repeating detection. Write x => CompositeKey.Create(x.PAN) or choose properties from the pop-up window
Misc DisplayName Display name of the activity in the workflow. Generate PAN
Result Contains the masking definition object. It's a part of the masking infrastructure and should be ignored. -