---
title: "Codeunit 6228 Sust. Preview Posting Handler, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/6228-sust-preview-posting-handler/points/
object: https://jonas-paprotka.de/ref/codeunit/6228-sust-preview-posting-handler/
app: "Sustainability"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/6228-sust-preview-posting-handler/source/
checked: 2026-11-20
changed: 2026-10-05
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/"
---

# Codeunit 6228 Sust. Preview Posting Handler, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/6228-sust-preview-posting-handler/points/

3 procedures and triggers with a step in src/Apps/W1/Sustainability/app/src/Posting/SustPreviewPostingHandler.Codeunit.al, in source order, read from the text, not from a run.

## OnInsertLedgerEntryOnBeforeInsert

[Line 11](https://jonas-paprotka.de/ref/codeunit/6228-sust-preview-posting-handler/source/#L11), local.

- [17](https://jonas-paprotka.de/ref/codeunit/6228-sust-preview-posting-handler/source/#L17) calls [Codeunit 6233 Sust. Preview Post Instance](https://jonas-paprotka.de/ref/codeunit/6233-sust-preview-post-instance/) `InsertSustLedgEntry`

## OnInsertSustLedgEntry

[Line 22](https://jonas-paprotka.de/ref/codeunit/6228-sust-preview-posting-handler/source/#L22), local.

- [26](https://jonas-paprotka.de/ref/codeunit/6228-sust-preview-posting-handler/source/#L26) calls [Codeunit 6233 Sust. Preview Post Instance](https://jonas-paprotka.de/ref/codeunit/6233-sust-preview-post-instance/) `InsertSustLedgEntry`

## OnInsertSustValueEntry

[Line 30](https://jonas-paprotka.de/ref/codeunit/6228-sust-preview-posting-handler/source/#L30), local.

- [34](https://jonas-paprotka.de/ref/codeunit/6228-sust-preview-posting-handler/source/#L34) calls [Codeunit 6233 Sust. Preview Post Instance](https://jonas-paprotka.de/ref/codeunit/6233-sust-preview-post-instance/) `InsertSustValueEntry`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
