---
title: "Page 132 Posted Sales Invoice, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/points/
object: https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/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/"
---

# Page 132 Posted Sales Invoice, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/points/

32 procedures and triggers with a step in src/Layers/W1/BaseApp/Sales/History/PostedSalesInvoice.Page.al, in source order, read from the text, not from a run.

## Document Exchange Status.OnDrillDown

[Line 219](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L219), trigger.

- [223](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L223) calls [Codeunit 1420 Doc. Exch. Serv.- Doc. Status](https://jonas-paprotka.de/ref/codeunit/1420-doc-exch-serv-doc-status/) `DocExchStatusDrillDown`

## Cancelled.OnDrillDown

[Line 277](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L277), trigger.

- [279](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L279) calls [Table 112 Sales Invoice Header](https://jonas-paprotka.de/ref/table/112-sales-invoice-header/) `ShowCorrectiveCreditMemo`

## Corrective.OnDrillDown

[Line 289](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L289), trigger.

- [291](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L291) calls [Table 112 Sales Invoice Header](https://jonas-paprotka.de/ref/table/112-sales-invoice-header/) `ShowCancelledCreditMemo`

## Currency Code.OnAssistEdit

[Line 337](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L337), trigger.

- [341](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L341) calls [Page 511 Change Exchange Rate](https://jonas-paprotka.de/ref/page/511-change-exchange-rate/) `SetParameter`
- [344](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L344) calls [Page 511 Change Exchange Rate](https://jonas-paprotka.de/ref/page/511-change-exchange-rate/) `GetParameter`
- [345](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L345) calls [Codeunit 325 Update Currency Factor](https://jonas-paprotka.de/ref/codeunit/325-update-currency-factor/) `ModifyPostedSalesInvoice`

## SelectedPayments.OnAssistEdit

[Line 387](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L387), trigger.

- [391](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L391) calls [Table 1060 Payment Service Setup](https://jonas-paprotka.de/ref/table/1060-payment-service-setup/) `ChangePaymentServicePostedInvoice`

## Dimensions.OnAction

[Line 765](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L765), trigger.

- [767](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L767) calls [Table 112 Sales Invoice Header](https://jonas-paprotka.de/ref/table/112-sales-invoice-header/) `ShowDimensions`

## Approvals.OnAction

[Line 778](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L778), trigger.

- [782](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L782) calls [Codeunit 1535 Approvals Mgmt.](https://jonas-paprotka.de/ref/codeunit/1535-approvals-mgmt/) `ShowPostedApprovalEntries`

## DocAttach.OnAction

[Line 792](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L792), trigger.

- [798](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L798) calls [Page 1173 Document Attachment Details](https://jonas-paprotka.de/ref/page/1173-document-attachment-details/) `OpenForRecRef`

## ChangePaymentService.OnAction

[Line 813](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L813), trigger.

- [817](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L817) calls [Table 1060 Payment Service Setup](https://jonas-paprotka.de/ref/table/1060-payment-service-setup/) `ChangePaymentServicePostedInvoice`

## CRMGotoInvoice.OnAction

[Line 833](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L833), trigger.

- [837](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L837) calls [Codeunit 5330 CRM Integration Management](https://jonas-paprotka.de/ref/codeunit/5330-crm-integration-management/) `ShowCRMEntityFromRecordID`

## CreateInCRM.OnAction

[Line 848](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L848), trigger.

- [852](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L852) calls [Codeunit 5330 CRM Integration Management](https://jonas-paprotka.de/ref/codeunit/5330-crm-integration-management/) `CreateNewRecordsInCRM`

## ShowLog.OnAction

[Line 862](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L862), trigger.

- [866](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L866) calls [Codeunit 5330 CRM Integration Management](https://jonas-paprotka.de/ref/codeunit/5330-crm-integration-management/) `ShowLog`

## &Track Package.OnAction

[Line 884](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L884), trigger.

- [886](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L886) calls [Table 112 Sales Invoice Header](https://jonas-paprotka.de/ref/table/112-sales-invoice-header/) `StartTrackingSite`

## SendCustom.OnAction

[Line 898](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L898), trigger.

- [904](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L904) calls [Table 112 Sales Invoice Header](https://jonas-paprotka.de/ref/table/112-sales-invoice-header/) `SendRecords`

## Print.OnAction

[Line 916](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L916), trigger.

- [923](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L923) raises `OnBeforeSalesInvHeaderPrintRecords`, IsHandled
- [925](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L925) calls [Table 112 Sales Invoice Header](https://jonas-paprotka.de/ref/table/112-sales-invoice-header/) `PrintRecords`

## Email.OnAction

[Line 935](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L935), trigger.

- [939](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L939) calls [Table 112 Sales Invoice Header](https://jonas-paprotka.de/ref/table/112-sales-invoice-header/) `EmailRecords`

## AttachAsPDF.OnAction

[Line 949](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L949), trigger.

- [955](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L955) calls [Table 112 Sales Invoice Header](https://jonas-paprotka.de/ref/table/112-sales-invoice-header/) `PrintToDocumentAttachment`

## &Navigate.OnAction

[Line 969](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L969), trigger.

- [971](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L971) calls [Table 112 Sales Invoice Header](https://jonas-paprotka.de/ref/table/112-sales-invoice-header/) `Navigate`

## ActivityLog.OnAction

[Line 981](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L981), trigger.

- [983](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L983) calls [Table 112 Sales Invoice Header](https://jonas-paprotka.de/ref/table/112-sales-invoice-header/) `ShowActivityLog`

## Update Document.OnAction

[Line 993](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L993), trigger.

- [998](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L998) calls [Page 1355 Posted Sales Inv. - Update](https://jonas-paprotka.de/ref/page/1355-posted-sales-inv-update/) `SetRec`

## IncomingDocCard.OnAction

[Line 1014](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1014), trigger.

- [1018](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1018) calls [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) `ShowCard`

## SelectIncomingDoc.OnAction

[Line 1030](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1030), trigger.

- [1034](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1034) calls [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) `SelectIncomingDocumentForPostedDocument`

## IncomingDocAttachFile.OnAction

[Line 1046](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1046), trigger.

- [1050](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1050) calls [Table 133 Incoming Document Attachment](https://jonas-paprotka.de/ref/table/133-incoming-document-attachment/) `NewAttachmentFromPostedDocument`

## CorrectInvoice.OnAction

[Line 1067](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1067), trigger.

- [1071](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1071) calls [Codeunit 1322 Correct PstdSalesInv (Yes/No)](https://jonas-paprotka.de/ref/codeunit/1322-correct-pstdsalesinv-yes-no/) `CorrectInvoice`

## CancelInvoice.OnAction

[Line 1083](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1083), trigger.

- [1087](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1087) calls [Codeunit 1323 Cancel PstdSalesInv (Yes/No)](https://jonas-paprotka.de/ref/codeunit/1323-cancel-pstdsalesinv-yes-no/) `CancelInvoice`

## CreateCreditMemo.OnAction

[Line 1098](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1098), trigger.

- [1105](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1105) raises `OnBeforeCreateCreditMemoOnAction`, IsHandled
- [1109](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1109) calls [Codeunit 1303 Correct Posted Sales Invoice](https://jonas-paprotka.de/ref/codeunit/1303-correct-posted-sales-invoice/) `CreateCreditMemoCopyDocument`
- [1110](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1110) runs [Page 44 Sales Credit Memo](https://jonas-paprotka.de/ref/page/44-sales-credit-memo/)

## ShowCreditMemo.OnAction

[Line 1123](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1123), trigger.

- [1125](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1125) calls [Table 112 Sales Invoice Header](https://jonas-paprotka.de/ref/table/112-sales-invoice-header/) `ShowCanceledOrCorrCrMemo`

## OnAfterGetCurrRecord

[Line 1268](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1268), trigger.

- [1275](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1275) raises `OnBeforeOnAfterGetCurrRecord`, IsHandled
- [1280](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1280) calls [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) `PostedDocExists`
- [1281](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1281) calls [Table 112 Sales Invoice Header](https://jonas-paprotka.de/ref/table/112-sales-invoice-header/) `GetDocExchStatusStyle`
- [1284](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1284) calls [Codeunit 5331 CRM Coupling Management](https://jonas-paprotka.de/ref/codeunit/5331-crm-coupling-management/) `IsRecordCoupledToCRM`
- [1286](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1286) calls [Codeunit 5330 CRM Integration Management](https://jonas-paprotka.de/ref/codeunit/5330-crm-integration-management/) `SendResultNotification`
- [1289](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1289) calls `UpdatePaymentService`
- [1290](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1290) calls [Table 112 Sales Invoice Header](https://jonas-paprotka.de/ref/table/112-sales-invoice-header/) `DocExchangeStatusIsSent`

## Category_Synchronize.OnAfterGetRecord

[Line 1293](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1293), trigger.

- [1295](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1295) calls [Table 112 Sales Invoice Header](https://jonas-paprotka.de/ref/table/112-sales-invoice-header/) `GetDocExchStatusStyle`
- [1296](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1296) calls [Table 5050 Contact](https://jonas-paprotka.de/ref/table/5050-contact/) `GetOrClear`
- [1297](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1297) calls [Table 5050 Contact](https://jonas-paprotka.de/ref/table/5050-contact/) `GetOrClear`

## OnOpenPage

[Line 1305](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1305), trigger.

- [1311](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1311) calls [Table 112 Sales Invoice Header](https://jonas-paprotka.de/ref/table/112-sales-invoice-header/) `SetSecurityFilterOnRespCenter`
- [1312](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1312) calls [Codeunit 5330 CRM Integration Management](https://jonas-paprotka.de/ref/codeunit/5330-crm-integration-management/) `IsCRMIntegrationEnabled`
- [1314](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1314) calls [Codeunit 1630 Office Management](https://jonas-paprotka.de/ref/codeunit/1630-office-management/) `IsAvailable`
- [1316](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1316) calls `ActivateFields`
- [1317](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1317) calls [Table 1060 Payment Service Setup](https://jonas-paprotka.de/ref/table/1060-payment-service-setup/) `IsPaymentServiceVisible`
- [1318](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1318) calls [Codeunit 799 VAT Reporting Date Mgt](https://jonas-paprotka.de/ref/codeunit/799-vat-reporting-date-mgt/) `IsVATDateEnabled`

## ActivateFields

[Line 1343](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1343), local.

- [1345](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1345) calls [Codeunit 365 Format Address](https://jonas-paprotka.de/ref/codeunit/365-format-address/) `UseCounty`
- [1346](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1346) calls [Codeunit 365 Format Address](https://jonas-paprotka.de/ref/codeunit/365-format-address/) `UseCounty`
- [1347](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1347) calls [Codeunit 365 Format Address](https://jonas-paprotka.de/ref/codeunit/365-format-address/) `UseCounty`

## UpdatePaymentService

[Line 1350](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1350), local.

- [1354](https://jonas-paprotka.de/ref/page/132-posted-sales-invoice/source/#L1354) calls [Table 1060 Payment Service Setup](https://jonas-paprotka.de/ref/table/1060-payment-service-setup/) `CanChangePaymentService`

## Source

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

JOP-AL, 2026-11-20.
