---
title: "Codeunit 20566 Subc. Posting Preview Subscr., extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/20566-subc-posting-preview-subscr/points/
object: https://jonas-paprotka.de/ref/codeunit/20566-subc-posting-preview-subscr/
app: "Subcontracting"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/20566-subc-posting-preview-subscr/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 20566 Subc. Posting Preview Subscr., extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/20566-subc-posting-preview-subscr/points/

4 procedures and triggers with a step in src/Apps/W1/Subcontracting/App/src/WIPItem/SubcPostingPreviewSubscr.Codeunit.al, in source order, read from the text, not from a run.

## GetEntriesOnGetEntries

[Line 22](https://jonas-paprotka.de/ref/codeunit/20566-subc-posting-preview-subscr/source/#L22), local.

- [26](https://jonas-paprotka.de/ref/codeunit/20566-subc-posting-preview-subscr/source/#L26) calls [Codeunit 20569 Subc. Feature Flag Handler](https://jonas-paprotka.de/ref/codeunit/20569-subc-feature-flag-handler/) `IsSubcontractingEnabled`
- [30](https://jonas-paprotka.de/ref/codeunit/20566-subc-posting-preview-subscr/source/#L30) calls `GetAllTables`

## ShowEntriesOnAfterShowEntries

[Line 38](https://jonas-paprotka.de/ref/codeunit/20566-subc-posting-preview-subscr/source/#L38), local.

- [42](https://jonas-paprotka.de/ref/codeunit/20566-subc-posting-preview-subscr/source/#L42) calls [Codeunit 20569 Subc. Feature Flag Handler](https://jonas-paprotka.de/ref/codeunit/20569-subc-feature-flag-handler/) `IsSubcontractingEnabled`
- [46](https://jonas-paprotka.de/ref/codeunit/20566-subc-posting-preview-subscr/source/#L46) calls `GetAllTables`
- [49](https://jonas-paprotka.de/ref/codeunit/20566-subc-posting-preview-subscr/source/#L49) runs [Page 20560 Subc. WIP Ledger Entries](https://jonas-paprotka.de/ref/page/20560-subc-wip-ledger-entries/)

## FillDocumentEntryOnAfterFillDocumentEntry

[Line 54](https://jonas-paprotka.de/ref/codeunit/20566-subc-posting-preview-subscr/source/#L54), local.

- [58](https://jonas-paprotka.de/ref/codeunit/20566-subc-posting-preview-subscr/source/#L58) calls [Codeunit 20569 Subc. Feature Flag Handler](https://jonas-paprotka.de/ref/codeunit/20569-subc-feature-flag-handler/) `IsSubcontractingEnabled`
- [62](https://jonas-paprotka.de/ref/codeunit/20566-subc-posting-preview-subscr/source/#L62) calls `GetAllTables`
- [63](https://jonas-paprotka.de/ref/codeunit/20566-subc-posting-preview-subscr/source/#L63) calls [Codeunit 20 Posting Preview Event Handler](https://jonas-paprotka.de/ref/codeunit/20-posting-preview-event-handler/) `InsertDocumentEntry`

## GetAllTables

[Line 66](https://jonas-paprotka.de/ref/codeunit/20566-subc-posting-preview-subscr/source/#L66), local.

- [70](https://jonas-paprotka.de/ref/codeunit/20566-subc-posting-preview-subscr/source/#L70) calls [Codeunit 20567 Subc. Pst. Prev. Event Handler](https://jonas-paprotka.de/ref/codeunit/20567-subc-pst-prev-event-handler/) `GetTempSubcontractorWIPLedgerEntry`

## Source

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

JOP-AL, 2026-11-20.
