---
title: "Codeunit 432 Consolidate"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/432-consolidate/
type: codeunit
id: 432
name: "Consolidate"
app: "Base Application"
namespace: Microsoft.Finance.Consolidation
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/432-consolidate/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 432 Consolidate

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/432-consolidate/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Finance.Consolidation |
| Versions | 17-28 |
| Source file | Finance/Consolidation/Consolidate.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| SetDocNo | (Code[20]) | - | public | 17-28 | - | - |
| SetSelectedDim | (var Record Selected Dimension) | - | public | 17-28 | - | - |
| SetGlobals | (Code[10], Code[10], Text[30], Code[10], Code[10], Code[10], Decimal, Date, Date) | - | public | 17-28 | - | - |
| InsertGLAccount | (Record G/L Account) | - | public | 17-28 | - | - |
| InsertGLEntry | (Record G/L Entry) | Integer | public | 17-28 | - | - |
| InsertEntryDim | (Record Dimension Buffer, Integer) | - | public | 17-28 | - | - |
| InsertExchRate | (Record Currency Exchange Rate) | - | public | 17-28 | - | - |
| UpdateGLEntryDimSetID | () | - | public | 17-28 | - | - |
| CalcCheckSum | () | Decimal | public | 17-28 | - | - |
| ImportFromXML | (Text) | - | public | 17-28 | - | - |
| ExportToXML | (Text) | - | public | 17-28 | - | - |
| GetGlobals | (var Code[10], var Code[10], var Text[30], var Code[10], var Code[10], var Code[10], var Decimal, var Date, var Date) | - | public | 17-28 | - | - |
| SetTestMode | (Boolean) | - | public | 17-28 | - | - |
| GetAccumulatedErrors | (var Integer, var Text) | - | public | 17-28 | - | - |
| SelectAllImportedDimensions | () | - | public | 17-28 | - | - |
| GetNumSubsidGLAcc | () | Integer | public | 17-28 | - | - |
| Get1stSubsidGLAcc | (var Record G/L Account) | Boolean | public | 17-28 | - | - |
| GetNxtSubsidGLAcc | (var Record G/L Account) | Boolean | public | 17-28 | - | - |
| GetNumSubsidGLEntry | () | Integer | public | 17-28 | - | - |
| Get1stSubsidGLEntry | (var Record G/L Entry) | Boolean | public | 17-28 | - | - |
| GetNxtSubsidGLEntry | (var Record G/L Entry) | Boolean | public | 17-28 | - | - |
| SetGenJnlBatch | (Record Gen. Journal Batch) | - | public | 20-28 | - | - |
| ValidateMaxNumberOfDaysInConsolidation | (Date, Date) | Boolean | internal | 23-28 | - | - |
| MaxNumberOfDaysInConsolidation | () | Integer | internal | 23-28 | - | - |
| GetGLAccounts | (var Record G/L Account) | - | internal | 23-28 | - | - |
| CreateAndPostGenJnlLine | (Record Gen. Journal Line, var Record G/L Entry, var Record Dimension Buffer) | - | public | 24-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeGenJnlPostLine | (var Record Gen. Journal Line) | 17-28 | - | - |
| Integration event | OnBeforeInsertGLEntry | (var Record G/L Entry, Record G/L Entry) | 17-28 | - | - |
| Integration event | OnClearPreviousConsolidationOnBeforeCheckAmountArray | (var Decimal, var Date) | 17-28 | - | - |
| Integration event | OnClearPreviousConsolidationOnBeforeUpdateAmountArray | (var Record G/L Entry, var Decimal, var Date, var Integer) | 17-22 | - | - |
| Integration event | OnUpdateGLEntryDimSetIDOnAfterAssignDimensionSetID | (var Record Dimension Buffer) | 17-28 | - | - |
| Integration event | OnBeforeUpdateTempGLEntry | (var Record G/L Entry, var Record Gen. Journal Line, var Integer, var Text, Boolean) | 19-21 | - | - |
| Integration event | OnAfterUpdateTempGLEntry | (var Record Business Unit, var Record G/L Entry) | 19-28 | - | - |
| Integration event | OnAfterCreateAndPostGenJnlLine | (var Record Gen. Journal Line, Decimal, Code[10]) | 19-28 | - | - |
| Integration event | OnBeforePostBalancingEntries | (var Record Gen. Journal Line) | 19-28 | - | - |
| Integration event | OnBeforeWindowUpdate | (var Record Gen. Journal Line) | 19-28 | - | - |
| Integration event | OnAfterBusUnitModify | (var Record Business Unit, var Record Business Unit) | 19-28 | - | - |
| Integration event | OnBeforeSetSelectedDim | (var Record Selected Dimension, var Record Selected Dimension, var Boolean, var Boolean) | 19-28 | - | - |
| Integration event | OnAfterGetGLAccount | (var Record G/L Account) | 19-28 | - | - |
| Integration event | OnBeforeClearPreviousConsolidation | (var Record G/L Entry) | 19-28 | - | - |
| Integration event | OnBeforeUpdatePriorPeriodBalances | (var Record Gen. Journal Line) | 19-28 | - | - |
| Integration event | OnBeforeConsolidGLEntryFindSet | (var Record G/L Entry) | 19-28 | - | - |
| Integration event | OnBeforeConsolidGLAccFindSet | (var Record G/L Account) | 19-28 | - | - |
| Integration event | OnBeforeGenJnlPostLineTmp | (var Record Gen. Journal Line) | 19-28 | - | - |
| Integration event | OnBeforeTempDimSetEntryDelete | (var Record Gen. Journal Line, var Record G/L Entry) | 19-28 | - | - |
| Integration event | OnBeforeTempGenJnlLineInsert | (var Record Gen. Journal Line) | 19-28 | - | - |
| Integration event | OnAfterCheckPostingDate | (var Record G/L Entry, var Boolean, var Text) | 19-28 | - | - |
| Integration event | OnBeforeUpdateTempGLEntryProcedure | (var Record G/L Entry, Record G/L Entry, var Boolean) | 19-21 | - | - |
| Integration event | OnRunOnBeforeTempGLEntryLoop | (var Record G/L Entry, Record G/L Account) | 19-28 | - | - |
| Integration event | OnBeforeShowAnalysisViewEntryMessage | (var Boolean, var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeOnRun | (var Record Business Unit) | 20-28 | - | - |
| Integration event | OnRunOnAfterCalcShouldClearPreviousConsolidation | (var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeUpdateTempGLEntry | (var Record G/L Entry, var Record Gen. Journal Line, var Integer, var Text, Boolean, var Dialog) | 22-28 | - | - |
| Integration event | OnBeforeUpdateTempGLEntryProcedure | (var Record G/L Entry, Record G/L Entry, var Boolean, Record Dimension Buffer) | 22-28 | - | - |
| Integration event | OnRunOnBeforeWindowOpen | (var Dialog, var Boolean) | 22-28 | - | - |
| Integration event | OnRunOnBeforeInsertTempDimBuf | (var Record Dimension Buffer, var Record Dimension Buffer) | 22-28 | - | - |
| Integration event | OnClearPreviousConsolidationOnBeforeUpdateAmountArray | (var Record G/L Entry, var Decimal, var Date, var Integer, var Boolean) | 23-28 | - | - |
| Integration event | OnCreateAndPostGenJnlLineOnBeforeConsolidGLAccGet | (var Record Gen. Journal Line, var Record G/L Entry, var Record Business Unit, var Record G/L Account) | 23-28 | - | - |
| Integration event | OnRunOnBeforeLoopTempSubsidGLEntry | (var Record Business Unit, var Record G/L Account) | 23-28 | - | - |
| Integration event | OnRunOnTempSubsidGLEntryLoopStart | (var Record Gen. Journal Line, var Record Business Unit, var Record G/L Entry) | 23-28 | - | - |
| Integration event | OnRunOnBeforeSetResidualAccount | (var Record Business Unit, var Record Gen. Journal Line, var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeExportToXML | (Text, var Record G/L Account, var Record G/L Entry, var Record Dimension Buffer, var Record Currency Exchange Rate, var Boolean) | 23-28 | - | - |
| Integration event | OnCheckAmountArrayOnBeforeReportError | (var Decimal, var Date, Integer, var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeImportFromXML | (Text, var Record G/L Account, var Record G/L Entry, var Record Dimension Buffer, var Record Currency Exchange Rate, var Boolean) | 23-28 | - | - |
| Integration event | OnClearPreviousConsolidationOnAfterConsolidGLEntrySetFilters | (var Record G/L Entry) | 23-28 | - | - |
| Integration event | OnAfterSetGlobals | (var Code[10], var Code[10], var Text[30], var Code[10], var Code[10], var Code[10], var Decimal, var Date, var Date) | 23-28 | - | - |
| Integration event | OnImportFromXMLOnBeforeSelectAllImportedDimensions | (var Code[10], var Code[10], var Text[30], var Code[10], var Code[10], var Code[10], var Decimal, var Date, var Date) | 23-28 | - | - |
| Integration event | OnUpdatePriorPeriodBalancesOnBeforePostBalanceAdjustment | (var Record G/L Account) | 25-28 | - | - |
| Integration event | OnTestGLAccountsOnBeforeTestForConflicts | (var Record G/L Account) | 26-28 | - | - |
| Integration event | OnClearPreviousConsolidationOnBeforeModifyConsolidGLEntry | (var Record G/L Entry) | 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.
