---
title: "Codeunit 1797 Data Migration Facade Helper"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/1797-data-migration-facade-helper/
type: codeunit
id: 1797
name: "Data Migration Facade Helper"
app: "Base Application"
namespace: System.Integration
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/1797-data-migration-facade-helper/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 1797 Data Migration Facade Helper

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/1797-data-migration-facade-helper/

| | |
| --- | --- |
| App | Base Application |
| Namespace | System.Integration |
| Versions | 17-28 |
| Source file | System/DataMigration/DataMigrationFacadeHelper.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| CreateShipmentMethodIfNeeded | (Code[10], Text[50]) | Code[10] | public | 17-28 | - | - |
| CreateSalespersonPurchaserIfNeeded | (Code[20], Text[50], Text[30], Text[80]) | Code[20] | public | 17-28 | - | - |
| CreateCustomerPriceGroupIfNeeded | (Code[10], Text[50], Boolean) | Code[10] | public | 17-28 | - | - |
| CreatePaymentTermsIfNeeded | (Code[10], Text[50], DateFormula) | Code[10] | public | 17-28 | - | - |
| CreateTerritoryIfNeeded | (Code[10], Text[50]) | Code[10] | public | 17-28 | - | - |
| CreateTaxAreaIfNeeded | (Code[20], Text[50]) | Code[20] | public | 17-28 | - | - |
| CreatePaymentMethodIfNeeded | (Code[10], Text[50]) | Code[10] | public | 17-28 | - | - |
| DoesPostCodeExist | (Code[20], Text[30]) | Boolean | public | 17-28 | - | - |
| CreatePostCodeIfNeeded | (Code[20], Text[30], Text[30], Code[10]) | Boolean | public | 17-28 | - | - |
| CreateCountryIfNeeded | (Code[10], Text[50], Option, Option) | Code[10] | public | 17-28 | - | - |
| SearchCountry | (Code[10], Text[50], Code[10], Code[10], var Code[10]) | Boolean | public | 17-28 | - | - |
| SearchLanguage | (Code[3], var Code[10]) | Boolean | public | 17-28 | - | - |
| FixIfLcyCode | (Code[10]) | Code[10] | public | 17-28 | - | - |
| CreateGeneralJournalBatchIfNeeded | (Code[10], Code[20], Code[20]) | - | public | 17-28 | - | - |
| CreateGeneralJournalLine | (var Record Gen. Journal Line, Code[10], Code[20], Text[50], Enum Gen. Journal Account Type, Code[20], Date, Date, Decimal, Decimal, Code[10], Code[20]) | - | public | 17-28 | - | - |
| GetOrCreateDimension | (Code[20], Text[50], var Record Dimension) | - | public | 17-28 | - | - |
| GetOrCreateDimensionValue | (Code[20], Code[20], Text[50], var Record Dimension Value) | - | public | 17-28 | - | - |
| CreateOnlyDefaultDimensionIfNeeded | (Code[20], Code[20], Integer, Code[20]) | - | public | 17-28 | - | - |
| CreateDimensionSetId | (Integer, Code[20], Text[50], Code[20], Text[50]) | Integer | public | 17-28 | - | - |
| CreateSourceCodeIfNeeded | (Code[10]) | Code[10] | public | 17-28 | - | - |
| SetAlternativeContact | (Text[50], Text[50], Text[50], Code[20], Text[30], Code[10], Text[80], Text[30], Text[30], Text[30], Integer, Code[20]) | - | public | 17-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
