Generate AHV (Sozialversicherungsnummer)

The Generate AHV (Sozialversicherungsnummer) masking activity allows you to generate AHV numbers.

Table of contents
Usage
Example
Properties

Usage

To use the Generate AHV (Sozialversicherungsnummer) 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.

Example

In this example, we want to mask the social security numbers in the Customer table. We place the Customer masking activity and put the Generate AHV (Sozialversicherungsnummer) masking activity within it. Once placed, we select the SocialSecurityNumber property.

Generate AHV example Figure 1: Generating AHV (Sozialversicherungsnummer)

Properties

Property group Property name Description Example
Input properties DataItemProperty The property to mask. Write x => x.SocialSecurityNumber or choose property from the dropdown list
Generator Data generator used to replace values. new Ekobit.BizDataX.DataMasking.DataGenerators.CH.AHVGenerator()
Input: Filter Filter Expression used for filtering records - only filtered items will be masked. x => x.SocialSecurityNumber.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. SocialSecurityNumberRepeater
RepeatingKey Key to use for repeating detection. Write x => CompositeKey.Create(x.SocialSecurityNumber) or choose properties from the pop-up window
Misc DisplayName Display name of the activity in the workflow. Generate AHV (Sozialversicherungsnummer)
Result Contains the masking definition object. It's a part of the masking infrastructure and should be ignored. -