---
title: "Sustainability events"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/events/sustainability/
checked: 2026-11-19
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Sustainability events

JOP-AL, https://jonas-paprotka.de/ref/events/sustainability/

57 events, one row per event and signature, by object and then by name.

| Object | Event | Signature | Kind | Versions | Obsolete |
| --- | --- | --- | --- | --- | --- |
| [Codeunit 6212 Sustainability Post Mgt](https://jonas-paprotka.de/ref/codeunit/6212-sustainability-post-mgt/) | OnBeforeInsertSustainabilityLedgerEntry | `(var SustainabilityLedgerEntry: Record "Sustainability Ledger Entry"; SustainabilityJnlLine: Record "Sustainability Jnl. Line")` | Integration event | 27-29 | - |
| [Codeunit 6212 Sustainability Post Mgt](https://jonas-paprotka.de/ref/codeunit/6212-sustainability-post-mgt/) | OnInsertLedgerEntryOnBeforeInsert | `(var SustainabilityLedgerEntry: Record "Sustainability Ledger Entry"; var IsHandled: Boolean)` | Internal event | 28-29 | - |
| [Codeunit 6213 Sustainability Jnl.-Post](https://jonas-paprotka.de/ref/codeunit/6213-sustainability-jnl-post/) | OnBeforeConfirmDialog | `(var ShowConfirmDialog: Boolean)` | Integration event | 25-29 | - |
| [Codeunit 6216 Sustainability Jnl.-Check](https://jonas-paprotka.de/ref/codeunit/6216-sustainability-jnl-check/) | OnAfterCheckSustainabilityJournalLine | `(SustainabilityJnlLine: Record "Sustainability Jnl. Line")` | Integration event | 24-29 | - |
| [Codeunit 6218 Sustainability Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/6218-sustainability-calc-mgt/) | OnAfterFilterGLEntry | `(SustainAccountCategory: Record "Sustain. Account Category"; FromDate: Date; ToDate: Date; var GLEntry: Record "G/L Entry")` | Integration event | 24-29 | - |
| [Codeunit 6218 Sustainability Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/6218-sustainability-calc-mgt/) | OnBeforeCalculationEmissions | `(var IsHandled: Boolean; var SustainabilityJnlLine: Record "Sustainability Jnl. Line")` | Integration event | 24-29 | - |
| [Codeunit 6225 Sust. Purchase Subscriber](https://jonas-paprotka.de/ref/codeunit/6225-sust-purchase-subscriber/) | OnPostSustainabilityLineOnBeforeInsertLedgerEntry | `(var SustainabilityJnlLine: Record "Sustainability Jnl. Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line")` | Integration event | 25-29 | - |
| [Codeunit 6230 Compute Sust. Goal Cue](https://jonas-paprotka.de/ref/codeunit/6230-compute-sust-goal-cue/) | OnBeforeEvaluateCanRefreshCueValues | `(var LastUpdatedDateTime: DateTime; var CanRefresh: Boolean; var IsHandled: Boolean)` | Integration event | 25-29 | - |
| [Codeunit 6235 AnalysisViewEntryToSustEntries](https://jonas-paprotka.de/ref/codeunit/6235-analysisviewentrytosustentries/) | OnAfterGetSustLedgEntries | `(var AnalysisViewEntry: Record "Analysis View Entry"; var TempSustLedgEntry: Record "Sustainability Ledger Entry" temporary)` | Integration event | 25-29 | - |
| [Codeunit 6235 AnalysisViewEntryToSustEntries](https://jonas-paprotka.de/ref/codeunit/6235-analysisviewentrytosustentries/) | OnAfterGetSustLedgEntryIfDateCompressionNone | `(var AnalysisViewEntry: Record "Analysis View Entry"; var TempSustLedgEntry: Record "Sustainability Ledger Entry" temporary)` | Integration event | 25-29 | - |
| [Codeunit 6235 AnalysisViewEntryToSustEntries](https://jonas-paprotka.de/ref/codeunit/6235-analysisviewentrytosustentries/) | OnGetSustLedgEntriesOnAfterSustLedgEntrySetFilters | `(var SustLedgEntry: Record "Sustainability Ledger Entry"; var AnalysisView: Record "Analysis View"; var AnalysisViewEntry: Record "Analysis View Entry")` | Integration event | 25-29 | - |
| [Codeunit 6235 AnalysisViewEntryToSustEntries](https://jonas-paprotka.de/ref/codeunit/6235-analysisviewentrytosustentries/) | OnGetSustLedgEntriesOnBeforeCopySustLedgEntries | `(var AnalysisViewEntry: Record "Analysis View Entry"; var IsHandled: Boolean)` | Integration event | 25-29 | - |
| [Codeunit 6237 Acc. Sch. Line Mgmt. Helper](https://jonas-paprotka.de/ref/codeunit/6237-acc-sch-line-mgmt-helper/) | OnAfterSetSustAccAnalysisViewEntryFilters | `(var SustAcc: Record "Sustainability Account"; var AnalysisViewEntry: Record "Analysis View Entry"; var AccSchedLine: Record "Acc. Schedule Line"; var ColumnLayout: Record "Column Layout")` | Integration event | 25-29 | - |
| [Codeunit 6237 Acc. Sch. Line Mgmt. Helper](https://jonas-paprotka.de/ref/codeunit/6237-acc-sch-line-mgmt-helper/) | OnAfterSetSustAccColumnFilters | `(var SustAccount: Record "Sustainability Account"; var AccScheduleLine: Record "Acc. Schedule Line"; var ColumnLayout: Record "Column Layout"; StartDate: Date; EndDate: Date)` | Integration event | 25-29 | - |
| [Codeunit 6237 Acc. Sch. Line Mgmt. Helper](https://jonas-paprotka.de/ref/codeunit/6237-acc-sch-line-mgmt-helper/) | OnAfterSetSustAccRowFilters | `(var SustAcc: Record "Sustainability Account"; var AccScheduleLine: Record "Acc. Schedule Line")` | Integration event | 25-29 | - |
| [Codeunit 6237 Acc. Sch. Line Mgmt. Helper](https://jonas-paprotka.de/ref/codeunit/6237-acc-sch-line-mgmt-helper/) | OnAfterSetSustAccSustLedgEntryFilters | `(var SustAccount: Record "Sustainability Account"; var SustLedgEntry: Record "Sustainability Ledger Entry"; var AccSchedLine: Record "Acc. Schedule Line"; var ColumnLayout: Record "Column Layout"; UseDimFilter: Boolean)` | Integration event | 25-29 | - |
| [Codeunit 6237 Acc. Sch. Line Mgmt. Helper](https://jonas-paprotka.de/ref/codeunit/6237-acc-sch-line-mgmt-helper/) | OnBeforeCalcSustAcc | `(var SustAcc: Record "Sustainability Account"; var AccSchedLine: Record "Acc. Schedule Line"; var ColumnLayout: Record "Column Layout"; var ColValue: Decimal; var IsHandled: Boolean)` | Integration event | 25-29 | - |
| [Codeunit 6237 Acc. Sch. Line Mgmt. Helper](https://jonas-paprotka.de/ref/codeunit/6237-acc-sch-line-mgmt-helper/) | OnBeforeSetSustAccRowFilters | `(var SustAcc: Record "Sustainability Account"; var AccSchedLine2: Record "Acc. Schedule Line"; var IsHandled: Boolean)` | Integration event | 25-29 | - |
| [Codeunit 6237 Acc. Sch. Line Mgmt. Helper](https://jonas-paprotka.de/ref/codeunit/6237-acc-sch-line-mgmt-helper/) | OnBeforeSetSustAccSustLedgEntryFilters | `(var SustAcc: Record "Sustainability Account"; var AccSchedLine: Record "Acc. Schedule Line"; var ColumnLayout: Record "Column Layout"; UseDimFilter: Boolean; var IsHandled: Boolean; var SustLedgEntry: Record "Sustainability Ledger Entry")` | Integration event | 25-29 | - |
| [Codeunit 6237 Acc. Sch. Line Mgmt. Helper](https://jonas-paprotka.de/ref/codeunit/6237-acc-sch-line-mgmt-helper/) | OnBeforeTestBalance | `(var SustAccount: Record "Sustainability Account"; var AccScheduleName: Record "Acc. Schedule Name"; var AccScheduleLine: Record "Acc. Schedule Line"; var ColumnLayout: Record "Column Layout"; AmountType: Integer; var ColValue: Decimal; var TestBalance: Boolean; var SustLedgEntry: Record "Sustainability Ledger Entry"; var Balance: Decimal)` | Integration event | 25-29 | - |
| [Codeunit 6237 Acc. Sch. Line Mgmt. Helper](https://jonas-paprotka.de/ref/codeunit/6237-acc-sch-line-mgmt-helper/) | OnSetSustAccAnalysisViewEntryFiltersOnBeforeAccSchedLineCopyFilter | `(var AccScheduleLine: Record "Acc. Schedule Line"; AnalysisViewEntry: Record "Analysis View Entry")` | Integration event | 25-29 | - |
| [Codeunit 6243 Sust. Entry Reverse Mgt.](https://jonas-paprotka.de/ref/codeunit/6243-sust-entry-reverse-mgt/) | OnAfterReverseEntry | `(OriginalSustainabilityLedgerEntry: Record "Sustainability Ledger Entry"; ReversalSustainabilityLedgerEntry: Record "Sustainability Ledger Entry")` | Integration event | 29 | - |
| [Codeunit 6243 Sust. Entry Reverse Mgt.](https://jonas-paprotka.de/ref/codeunit/6243-sust-entry-reverse-mgt/) | OnBeforeInsertReversalSustainabilityLedgerEntry | `(var SustainabilityLedgerEntry: Record "Sustainability Ledger Entry"; OriginalSustainabilityLedgerEntry: Record "Sustainability Ledger Entry")` | Integration event | 29 | - |
| [Codeunit 6260 Sust. ESG Reporting Helper Mgt](https://jonas-paprotka.de/ref/codeunit/6260-sust-esg-reporting-helper-mgt/) | OnDrillDownElseCase | `(ESGReportingLine: Record "Sust. ESG Reporting Line")` | Integration event | 27-29 | - |
| [Codeunit 6260 Sust. ESG Reporting Helper Mgt](https://jonas-paprotka.de/ref/codeunit/6260-sust-esg-reporting-helper-mgt/) | OnSetSourceFiltersOnElseTableNo | `(var RecRef: RecordRef; ESGReportingLine: Record "Sust. ESG Reporting Line")` | Integration event | 27-29 | - |
| [Codeunit 6271 Sust. Excise Jnl.-Post](https://jonas-paprotka.de/ref/codeunit/6271-sust-excise-jnl-post/) | OnBeforeConfirmDialog | `(var ShowConfirmDialog: Boolean)` | Integration event | 27-29 | - |
| [Codeunit 6272 Sustainability Excise Post Mgt](https://jonas-paprotka.de/ref/codeunit/6272-sustainability-excise-post-mgt/) | OnAfterInsertExciseTaxesTransactionLog | `(var SustExciseTaxesTransactionLog: Record "Sust. Excise Taxes Trans. Log"; SustainabilityExciseJnlLine: Record "Sust. Excise Jnl. Line")` | Integration event | 29 | - |
| [Codeunit 6273 Sust. Excise Jnl.-Check](https://jonas-paprotka.de/ref/codeunit/6273-sust-excise-jnl-check/) | OnAfterCheckSustainabilityExciseJournalLine | `(SustainabilityExciseJnlLine: Record "Sust. Excise Jnl. Line")` | Integration event | 27-29 | - |
| [Codeunit 6273 Sust. Excise Jnl.-Check](https://jonas-paprotka.de/ref/codeunit/6273-sust-excise-jnl-check/) | OnBeforeTestEmissionAmount | `(SustainabilityExciseJnlLine: Record "Sust. Excise Jnl. Line"; var IsHandled: Boolean)` | Integration event | 28-29 | - |
| [Codeunit 6277 Sust. Setup Defaults](https://jonas-paprotka.de/ref/codeunit/6277-sust-setup-defaults/) | OnCreateJobQueueEntryOnBeforeJobQueueEnqueue | `(var JobQueueEntry: Record "Job Queue Entry"; var IntegrationTableMapping: Record "Integration Table Mapping"; JobCodeunitId: Integer; JobDescription: Text)` | Integration event | 27-29 | - |
| [Codeunit 6279 Sust. Approvals Mgmt.](https://jonas-paprotka.de/ref/codeunit/6279-sust-approvals-mgmt/) | OnBeforeIsSustJournalBatchApprovalsWorkflowEnabled | `(var SustJournalBatch: Record "Sustainability Jnl. Batch"; var Result: Boolean; var IsHandled: Boolean)` | Integration event | 27-29 | - |
| [Codeunit 6279 Sust. Approvals Mgmt.](https://jonas-paprotka.de/ref/codeunit/6279-sust-approvals-mgmt/) | OnCancelSustainabilityJournalBatchApprovalRequest | `(var SustJournalBatch: Record "Sustainability Jnl. Batch")` | Integration event | 27-29 | - |
| [Codeunit 6279 Sust. Approvals Mgmt.](https://jonas-paprotka.de/ref/codeunit/6279-sust-approvals-mgmt/) | OnSendSustainabilityJournalBatchForApproval | `(var SustJournalBatch: Record "Sustainability Jnl. Batch")` | Integration event | 27-29 | - |
| [Report 6222 EUDR Sales Invoice](https://jonas-paprotka.de/ref/report/6222-eudr-sales-invoice/) | OnAfterFillLeftHeader | `(var LeftHeader: Record "Name/Value Buffer"; SalesInvoiceHeader: Record "Sales Invoice Header")` | Integration event | 29 | - |
| [Report 6222 EUDR Sales Invoice](https://jonas-paprotka.de/ref/report/6222-eudr-sales-invoice/) | OnAfterFillRightHeader | `(var RightHeader: Record "Name/Value Buffer"; SalesInvoiceHeader: Record "Sales Invoice Header")` | Integration event | 29 | - |
| [Report 6222 EUDR Sales Invoice](https://jonas-paprotka.de/ref/report/6222-eudr-sales-invoice/) | OnAfterFormatDocumentFields | `(var SalesInvoiceHeader: Record "Sales Invoice Header")` | Integration event | 29 | - |
| [Report 6222 EUDR Sales Invoice](https://jonas-paprotka.de/ref/report/6222-eudr-sales-invoice/) | OnAfterGetSalesHeader | `(SalesInvoiceHeader: Record "Sales Invoice Header")` | Integration event | 29 | - |
| [Report 6222 EUDR Sales Invoice](https://jonas-paprotka.de/ref/report/6222-eudr-sales-invoice/) | OnAfterGetUOMText | `(UOMCode: Code[10]; var UOMDescription: Text[50])` | Integration event | 29 | - |
| [Report 6222 EUDR Sales Invoice](https://jonas-paprotka.de/ref/report/6222-eudr-sales-invoice/) | OnAfterLineOnPreDataItem | `(var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line")` | Integration event | 29 | - |
| [Report 6222 EUDR Sales Invoice](https://jonas-paprotka.de/ref/report/6222-eudr-sales-invoice/) | OnBeforeFillRightHeader | `(var SalesInvoiceHeader: Record "Sales Invoice Header"; SalespersonPurchaser: Record "Salesperson/Purchaser"; var SalesPersonText: Text[50]; var RightHeader: Record "Name/Value Buffer"; var IsHandled: Boolean)` | Integration event | 29 | - |
| [Report 6222 EUDR Sales Invoice](https://jonas-paprotka.de/ref/report/6222-eudr-sales-invoice/) | OnBeforeFormatLineValues | `(SalesInvoiceLine: Record "Sales Invoice Line"; var FormattedQuantity: Text; var FormattedUnitPrice: Text; var FormattedVATPercentage: Text; var FormattedLineAmount: Text; var IsHandled: Boolean)` | Integration event | 29 | - |
| [Report 6222 EUDR Sales Invoice](https://jonas-paprotka.de/ref/report/6222-eudr-sales-invoice/) | OnBeforeGetDocumentCaption | `(SalesInvoiceHeader: Record "Sales Invoice Header"; var DocCaption: Text)` | Integration event | 29 | - |
| [Report 6222 EUDR Sales Invoice](https://jonas-paprotka.de/ref/report/6222-eudr-sales-invoice/) | OnBeforeLineOnAfterGetRecord | `(var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line")` | Integration event | 29 | - |
| [Report 6222 EUDR Sales Invoice](https://jonas-paprotka.de/ref/report/6222-eudr-sales-invoice/) | OnBeforeVATAmountLineInsertLine | `(var VATAmountLine: Record "VAT Amount Line"; SalesInvoiceLine: Record "Sales Invoice Line"; var IsHandled: Boolean)` | Integration event | 29 | - |
| [Report 6222 EUDR Sales Invoice](https://jonas-paprotka.de/ref/report/6222-eudr-sales-invoice/) | OnHeaderOnAfterGetRecordOnAfterUpdateNoPrinted | `(ReportInPreviewMode: Boolean; var SalesInvoiceHeader: Record "Sales Invoice Header")` | Integration event | 29 | - |
| [Report 6222 EUDR Sales Invoice](https://jonas-paprotka.de/ref/report/6222-eudr-sales-invoice/) | OnInitReportForGlobalVariable | `(var IsHandled: Boolean; var LegalOfficeTxt: Text; var LegalOfficeLbl: Text; var CustomGiroTxt: Text; var CustomGiroLbl: Text; var LegalStatementLbl: Text)` | Integration event | 29 | - |
| [Table 6214 Sustainability Jnl. Line](https://jonas-paprotka.de/ref/table/6214-sustainability-jnl-line/) | OnAfterInitDefaultDimensionSources | `(var SustainabilityJnlLine: Record "Sustainability Jnl. Line"; var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; FieldNo: Integer)` | Integration event | 25-29 | - |
| [Table 6214 Sustainability Jnl. Line](https://jonas-paprotka.de/ref/table/6214-sustainability-jnl-line/) | OnAfterSetupNewLine | `(var SustainabilityJnlLine: Record "Sustainability Jnl. Line"; SustainabilityJnlBatch: Record "Sustainability Jnl. Batch"; PreviousSustainabilityJnlLine: Record "Sustainability Jnl. Line")` | Integration event | 24-29 | - |
| [Table 6214 Sustainability Jnl. Line](https://jonas-paprotka.de/ref/table/6214-sustainability-jnl-line/) | OnBeforeCheckOpenApprovalEntryExistForCurrentUser | `(SustJnlLine: Record "Sustainability Jnl. Line"; CurrFieldNo: Integer; var IsHandled: Boolean)` | Integration event | 27-29 | - |
| [Table 6225 Sust. Account (Analysis View)](https://jonas-paprotka.de/ref/table/6225-sust-account-analysis-view/) | OnBeforeGetCaptionClass | `(var SustAccountAnalysisView: Record "Sust. Account (Analysis View)"; AnalysisViewDimType: Integer; var Result: Text[250]; var IsHandled: Boolean)` | Integration event | 25-29 | - |
| [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) | OnAfterCopyFromFixedAsset | `(var ExciseJournalLine: Record "Sust. Excise Jnl. Line"; FixedAsset: Record "Fixed Asset")` | Integration event | 28-29 | - |
| [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) | OnAfterCopyFromItem | `(var ExciseJournalLine: Record "Sust. Excise Jnl. Line"; Item: Record Item)` | Integration event | 28-29 | - |
| [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) | OnAfterInitDefaultDimensionSources | `(var SustainabilityExciseJnlLine: Record "Sust. Excise Jnl. Line"; var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; FieldNo: Integer)` | Integration event | 27-29 | - |
| [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) | OnAfterSetupNewLine | `(var SustainabilityExciseJnlLine: Record "Sust. Excise Jnl. Line"; SustainabilityExciseJnlBatch: Record "Sust. Excise Journal Batch"; PreviousSustainabilityExciseJnlLine: Record "Sust. Excise Jnl. Line")` | Integration event | 27-29 | - |
| [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) | OnValidateSourceNoBeforeTestFieldPartnerNo | `(var SustainabilityExciseJnlLine: Record "Sust. Excise Jnl. Line"; var IsHandled: Boolean)` | Integration event | 28-29 | - |
| [Table 6240 Sust. Excise Jnl. Line](https://jonas-paprotka.de/ref/table/6240-sust-excise-jnl-line/) | OnValidateSustainabilityExciseJournalLineByFieldOnBeforeShowUnsupportedEntryError | `(var ExciseJournalLine: Record "Sust. Excise Jnl. Line"; CurrentFieldNo: Integer; var IsHandled: Boolean)` | Integration event | 28-29 | - |
| [Table 6241 Sust. Excise Taxes Trans. Log](https://jonas-paprotka.de/ref/table/6241-sust-excise-taxes-trans-log/) | OnAfterCopyFromSustainabilityExciseJnlLine | `(var SustExciseTaxesTransactionLog: Record "Sust. Excise Taxes Trans. Log"; SustainabilityExciseJnlLine: Record "Sust. Excise Jnl. Line")` | Integration event | 28-29 | - |
