# IntegrationFieldFixCPR

## <span class="mw-headline" id="bkmrk-what-it-does-1">What it does</span>

Cleans up external data in CPR format, for use in a scheduled integration.

String are cleaned using the CPR translateInput method. Data will be cleaned before inserting without the use of this codeunit, but lookups and such might fail if the CPR is formatted poorly.

## <span class="mw-headline" id="bkmrk-how-to-invoke-1">How to invoke</span>

Insert value in field mapping:

Designer &gt; Integration &gt; Import sources &gt; \[integration\] &gt; \[fieldmapping\] &gt; Codeunit handler

```
dk.p2e.blanket.codeunit.common.IntegrationFieldFixCPR
```

## <span class="mw-headline" id="bkmrk-configuration-1">Configuration</span>

<span class="mw-headline">None.</span>

## <span class="mw-headline" id="bkmrk-developer-info-1">Developer info</span>

- <span class="mw-headline">Type: [CodeunitTranslator](https://docs.tsnocode.com/books/codeunit-reference/chapter/translator)</span>
- <span class="mw-headline">Security: None</span>
- <span class="mw-headline">Classpath: dk.p2e.blanket.codeunit.common.IntegrationFieldFixCPR</span>