---
title: "Codeunit 6721 Booking Manager, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/points/
object: https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/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 6721 Booking Manager, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/points/

16 procedures and triggers with a step in src/Layers/W1/BaseApp/OtherCapabilities/Booking/BookingManager.Codeunit.al, in source order, read from the text, not from a run.

## GetBookingItems

[Line 29](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L29).

- [36](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L36) calls [Table 6702 Booking Sync](https://jonas-paprotka.de/ref/table/6702-booking-sync/) `IsSetup`
- [39](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L39) calls `RegisterAppointmentConnection`
- [43](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L43) calls [Codeunit 3006 DotNet_DateTimeOffset](https://jonas-paprotka.de/ref/codeunit/3006-dotnet-datetimeoffset/) `ConvertToUtcDateTime`
- [44](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L44) calls `TryFindAppointments`
- [50](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L50) calls [Table 6707 Booking Item](https://jonas-paprotka.de/ref/table/6707-booking-item/) `GetStartDate`
- [51](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L51) writes [Table 6707 Booking Item](https://jonas-paprotka.de/ref/table/6707-booking-item/) Insert

## GetBookingMailboxes

[Line 55](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L55).

- [57](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L57) raises `OnGetBookingMailboxes`

## GetBookingServiceForBooking

[Line 60](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L60).

- [62](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L62) raises `OnGetBookingServiceForBooking`

## InvoiceBookingItems

[Line 65](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L65).

- [69](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L69) calls `GetBookingItems`
- [70](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L70) runs [Page 1638 Booking Items](https://jonas-paprotka.de/ref/page/1638-booking-items/)

## RegisterAppointmentConnection

[Line 73](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L73).

- [75](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L75) raises `OnRegisterAppointmentConnection`

## SetBookingItemInvoiced

[Line 78](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L78).

- [80](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L80) raises `OnSetBookingItemInvoiced`

## Synchronize

[Line 83](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L83).

- [85](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L85) raises `OnSynchronize`

## CreateSalesHeader

[Line 116](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L116), local.

- [121](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L121) calls [Table 18 Customer](https://jonas-paprotka.de/ref/table/18-customer/) `FindByEmail`
- [123](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L123) calls [Codeunit 6721 Booking Manager](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/) `Synchronize`
- [124](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L124) calls [Table 18 Customer](https://jonas-paprotka.de/ref/table/18-customer/) `FindByEmail`
- [129](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L129) validates [Table 36 Sales Header](https://jonas-paprotka.de/ref/table/36-sales-header/) `Document Type`
- [130](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L130) validates [Table 36 Sales Header](https://jonas-paprotka.de/ref/table/36-sales-header/) `Sell-to Customer No.`
- [131](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L131) writes [Table 36 Sales Header](https://jonas-paprotka.de/ref/table/36-sales-header/) Insert(true)

## CreateSalesLine

[Line 134](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L134).

- [144](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L144) calls [Codeunit 6721 Booking Manager](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/) `Synchronize`
- [159](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L159) writes [Table 1638 Invoiced Booking Item](https://jonas-paprotka.de/ref/table/1638-invoiced-booking-item/) Insert(true)
- [162](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L162) validates [Table 37 Sales Line](https://jonas-paprotka.de/ref/table/37-sales-line/) `Document Type`
- [163](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L163) validates [Table 37 Sales Line](https://jonas-paprotka.de/ref/table/37-sales-line/) `Document No.`
- [164](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L164) validates [Table 37 Sales Line](https://jonas-paprotka.de/ref/table/37-sales-line/) `Line No.`
- [165](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L165) validates [Table 37 Sales Line](https://jonas-paprotka.de/ref/table/37-sales-line/) `Sell-to Customer No.`
- [166](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L166) validates [Table 37 Sales Line](https://jonas-paprotka.de/ref/table/37-sales-line/) `Type`
- [167](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L167) validates [Table 37 Sales Line](https://jonas-paprotka.de/ref/table/37-sales-line/) `No.`
- [168](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L168) validates [Table 37 Sales Line](https://jonas-paprotka.de/ref/table/37-sales-line/) `Quantity`
- [168](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L168) calls [Table 6707 Booking Item](https://jonas-paprotka.de/ref/table/6707-booking-item/) `GetEndDate`
- [168](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L168) calls [Table 6707 Booking Item](https://jonas-paprotka.de/ref/table/6707-booking-item/) `GetStartDate`
- [169](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L169) validates [Table 37 Sales Line](https://jonas-paprotka.de/ref/table/37-sales-line/) `Unit Price`
- [170](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L170) validates [Table 37 Sales Line](https://jonas-paprotka.de/ref/table/37-sales-line/) `Description`
- [170](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L170) calls [Table 6707 Booking Item](https://jonas-paprotka.de/ref/table/6707-booking-item/) `GetStartDate`
- [171](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L171) writes [Table 37 Sales Line](https://jonas-paprotka.de/ref/table/37-sales-line/) Insert(true)
- [172](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L172) writes [Table 1638 Invoiced Booking Item](https://jonas-paprotka.de/ref/table/1638-invoiced-booking-item/) Delete

## InvoiceItemsForCustomer

[Line 177](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L177).

- [190](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L190) calls `CreateSalesHeader`
- [193](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L193) calls `CreateSalesLine`
- [195](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L195) writes [Table 6707 Booking Item](https://jonas-paprotka.de/ref/table/6707-booking-item/) Delete
- [198](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L198) calls [Codeunit 6700 O365 Sync. Management](https://jonas-paprotka.de/ref/codeunit/6700-o365-sync-management/) `TraceCategory`

## OnAfterModifySalesHeader

[Line 204](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L204), local.

- [208](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L208) calls `CanHandleHeader`
- [213](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L213) calls `SetBookingItemInvoiced`

## OnAfterInsertSalesLine

[Line 217](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L217), local.

- [221](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L221) calls `CanHandleLine`
- [226](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L226) calls `SetBookingItemInvoiced`

## OnAfterInsertInvoicedBookingItem

[Line 230](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L230), local.

- [238](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L238) calls `SetBookingItemInvoiced`

## OnAfterModifySalesLine

[Line 242](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L242), local.

- [246](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L246) calls `CanHandleLine`
- [251](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L251) calls `SetBookingItemInvoiced`

## OnAfterPostSalesDoc

[Line 255](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L255), local.

- [259](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L259) calls `CanHandleHeader`
- [266](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L266) writes [Table 1638 Invoiced Booking Item](https://jonas-paprotka.de/ref/table/1638-invoiced-booking-item/) ModifyAll
- [267](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L267) writes [Table 1638 Invoiced Booking Item](https://jonas-paprotka.de/ref/table/1638-invoiced-booking-item/) ModifyAll
- [270](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L270) calls `SetBookingItemInvoiced`

## OnDeleteSalesInvoice

[Line 274](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L274), local.

- [278](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L278) calls `CanHandleHeader`
- [283](https://jonas-paprotka.de/ref/codeunit/6721-booking-manager/source/#L283) calls `SetBookingItemInvoiced`

## Source

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

JOP-AL, 2026-11-20.
