---
title: "Codeunit 5979 Service-Post and Send, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/points/
object: https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/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 5979 Service-Post and Send, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/points/

4 procedures and triggers with a step in src/Layers/W1/BaseApp/Service/Posting/ServicePostandSend.Codeunit.al, in source order, read from the text, not from a run.

## OnRun

[Line 15](https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/source/#L15), trigger.

- [18](https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/source/#L18) calls `Code`

## Code

[Line 26](https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/source/#L26), local.

- [31](https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/source/#L31) raises `OnBeforeCode`
- [36](https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/source/#L36) calls `ConfirmPostAndSend`
- [42](https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/source/#L42) calls [Table 60 Document Sending Profile](https://jonas-paprotka.de/ref/table/60-document-sending-profile/) `CheckElectronicSendingEnabled`
- [43](https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/source/#L43) calls `ValidateElectronicFormats`
- [45](https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/source/#L45) runs [Codeunit 5980 Service-Post](https://jonas-paprotka.de/ref/codeunit/5980-service-post/)
- [47](https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/source/#L47) raises `OnAfterPostAndBeforeSend`
- [50](https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/source/#L50) calls [Codeunit 5980 Service-Post](https://jonas-paprotka.de/ref/codeunit/5980-service-post/) `SendPostedDocumentRecord`
- [52](https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/source/#L52) raises `OnAfterCode`

## ConfirmPostAndSend

[Line 55](https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/source/#L55), local.

- [63](https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/source/#L63) raises `OnConfirmPostAndSendOnBeforeGetDocumentSendingProfile`, IsHandled
- [66](https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/source/#L66) calls [Table 60 Document Sending Profile](https://jonas-paprotka.de/ref/table/60-document-sending-profile/) `GetDefault`
- [70](https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/source/#L70) calls [Table 60 Document Sending Profile](https://jonas-paprotka.de/ref/table/60-document-sending-profile/) `SetDocumentUsage`
- [71](https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/source/#L71) writes [Table 60 Document Sending Profile](https://jonas-paprotka.de/ref/table/60-document-sending-profile/) Insert
- [72](https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/source/#L72) runs [Page 365 Post and Send Confirmation](https://jonas-paprotka.de/ref/page/365-post-and-send-confirmation/)

## ValidateElectronicFormats

[Line 78](https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/source/#L78), local.

- [86](https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/source/#L86) calls [Table 61 Electronic Document Format](https://jonas-paprotka.de/ref/table/61-electronic-document-format/) `ValidateElectronicFormat`
- [87](https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/source/#L87) calls [Codeunit 6464 Serv. Electr. Doc. Format](https://jonas-paprotka.de/ref/codeunit/6464-serv-electr-doc-format/) `ValidateElectronicServiceDocument`
- [93](https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/source/#L93) calls [Table 61 Electronic Document Format](https://jonas-paprotka.de/ref/table/61-electronic-document-format/) `ValidateElectronicFormat`
- [94](https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/source/#L94) calls [Codeunit 6464 Serv. Electr. Doc. Format](https://jonas-paprotka.de/ref/codeunit/6464-serv-electr-doc-format/) `ValidateElectronicServiceDocument`
- [98](https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/source/#L98) calls [Table 61 Electronic Document Format](https://jonas-paprotka.de/ref/table/61-electronic-document-format/) `ValidateElectronicFormat`
- [99](https://jonas-paprotka.de/ref/codeunit/5979-service-post-and-send/source/#L99) calls [Codeunit 6464 Serv. Electr. Doc. Format](https://jonas-paprotka.de/ref/codeunit/6464-serv-electr-doc-format/) `ValidateElectronicServiceDocument`

## Source

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

JOP-AL, 2026-11-20.
