---
title: "Codeunit 6110 GL Acc. Data Migration Facade"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/6110-gl-acc-data-migration-facade/
type: codeunit
id: 6110
name: "GL Acc. Data Migration Facade"
app: "Base Application"
namespace: System.Integration
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/6110-gl-acc-data-migration-facade/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 6110 GL Acc. Data Migration Facade

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/6110-gl-acc-data-migration-facade/

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

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| ModifyGLAccount | (Boolean) | - | public | 17-28 | - | - |
| CreateGLAccountIfNeeded | (Code[20], Text[50], Option) | Boolean | public | 17-28 | - | - |
| CreateGeneralPostingSetupIfNeeded | (Code[10]) | - | public | 17-28 | - | - |
| CreateGenProductPostingGroupIfNeeded | (Code[20], Text[50]) | - | public | 17-28 | - | - |
| CreateGenBusinessPostingGroupIfNeeded | (Code[20], Text[50]) | - | public | 17-28 | - | - |
| CreateGeneralJournalLine | (Code[10], Code[20], Text[50], Date, Date, Decimal, Decimal, Code[10], Code[20]) | - | public | 17-28 | - | - |
| CreateGeneralJournalBatchIfNeeded | (Code[10], Code[20], Code[20]) | - | public | 17-28 | - | - |
| SetGlobalGLAccount | (Code[20]) | Boolean | public | 17-28 | - | - |
| SetIncomeBalanceType | (Option) | - | public | 17-28 | - | - |
| SetTotaling | (Text[250]) | - | public | 17-28 | - | - |
| SetDebitCreditType | (Option) | - | public | 17-28 | - | - |
| SetExchangeRateAdjustmentType | (Option) | - | public | 17-28 | - | - |
| SetDirectPosting | (Boolean) | - | public | 17-28 | - | - |
| SetBlocked | (Boolean) | - | public | 17-28 | - | - |
| SetLastModifiedDateTime | (DateTime) | - | public | 17-28 | - | - |
| SetLastDateModified | (Date) | - | public | 17-28 | - | - |
| SetAccountCategory | (Option) | - | public | 17-28 | - | - |
| SetAccountSubCategory | (Integer) | - | public | 17-28 | - | - |
| SetGeneralPostingSetupSalesAccount | (Code[20], Code[20]) | - | public | 17-28 | - | - |
| SetGeneralPostingSetupSalesLineDiscAccount | (Code[20], Code[20]) | - | public | 17-28 | - | - |
| SetGeneralPostingSetupSalesInvDiscAccount | (Code[20], Code[20]) | - | public | 17-28 | - | - |
| SetGeneralPostingSetupSalesPmtDiscDebitAccount | (Code[20], Code[20]) | - | public | 17-28 | - | - |
| SetGeneralPostingSetupPurchAccount | (Code[20], Code[20]) | - | public | 17-28 | - | - |
| SetGeneralPostingSetupPurchLineDiscAccount | (Code[20], Code[20]) | - | public | 17-28 | - | - |
| SetGeneralPostingSetupPurchInvDiscAccount | (Code[20], Code[20]) | - | public | 17-28 | - | - |
| SetGeneralPostingSetupPurchCreditMemoAccount | (Code[20], Code[20]) | - | public | 17-28 | - | - |
| SetGeneralPostingSetupCOGSAccount | (Code[20], Code[20]) | - | public | 17-28 | - | - |
| SetGeneralPostingSetupInventoryAdjmtAccount | (Code[20], Code[20]) | - | public | 17-28 | - | - |
| SetGeneralPostingSetupSalesCreditMemoAccount | (Code[20], Code[20]) | - | public | 17-28 | - | - |
| SetGeneralPostingSetupPurchPmtDiscDebitAccount | (Code[20], Code[20]) | - | public | 17-28 | - | - |
| SetGeneralPostingSetupPurchPrepaymentsAccount | (Code[20], Code[20]) | - | public | 17-28 | - | - |
| SetGeneralPostingSetupPurchaseVarianceAccount | (Code[20], Code[20]) | - | public | 17-28 | - | - |
| CreateDefaultDimensionAndRequirementsIfNeeded | (Text[20], Text[50], Code[20], Text[30]) | - | public | 17-26 | - | - |
| SetGeneralJournalLineDimension | (var Record Gen. Journal Line, Code[20], Text[50], Code[20], Text[50]) | - | public | 17-28 | - | - |
| CreateDefaultDimensionAndRequirementsIfNeeded | (Text[20], Text[50], Code[20], Text[50]) | - | public | 27-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnMigrateGlAccount | (RecordId) | 17-28 | - | - |
| Integration event | OnCreateOpeningBalanceTrx | (RecordId) | 17-28 | - | - |
| Integration event | OnMigratePostingGroups | (RecordId) | 17-28 | - | - |
| Integration event | OnMigrateAccountTransactions | (RecordId) | 17-28 | - | - |
| Integration event | OnMigrateGlAccountDimensions | (RecordId) | 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.
