---
id: object/codeunit/6721
type: object
title: Codeunit 6721 "Booking Manager"
summary: Codeunit 6721 "Booking Manager" in Base Application (Microsoft.Booking). 10 public procedures, 5 events, 6 event subscribers. Present since at least BC23, still in BC30, changed in BC28.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "28"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 83733d28decd061cf43eebce87828735958f1acee0486f5aff8f3d78879a4dbe
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/OtherCapabilities/Booking/BookingManager.Codeunit.al
    title: src/Layers/W1/BaseApp/OtherCapabilities/Booking/BookingManager.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 6721
name: Booking Manager
namespace: Microsoft.Booking
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 25
  events: 5
  subscribers: 6
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 4
  calls: 3
  called_by: 3
  implements: 0
---

# Codeunit 6721 "Booking Manager"

> Codeunit 6721 "Booking Manager" in Base Application (Microsoft.Booking). 10 public procedures, 5 events, 6 event subscribers. Present since at least BC23, still in BC30, changed in BC28.

Base Application · Microsoft.Booking · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/OtherCapabilities/Booking/BookingManager.Codeunit.al) · facts from BC29

## Events published

- `OnGetBookingMailboxes(var TempBookingMailbox: Record "Booking Mailbox" temporary)` (integration)
  - subscribers: [Codeunit 6722 "Booking Manager Handler"](../codeunit/6722.md) OnGetBookingMailboxes
- `OnGetBookingServiceForBooking(var TempBookingItem: Record "Booking Item" temporary; var TempBookingService: Record "Booking Service" temporary)` (integration)
- `OnRegisterAppointmentConnection()` (integration)
  - subscribers: [Codeunit 6722 "Booking Manager Handler"](../codeunit/6722.md) OnRegisterAppointmentConnection
- `OnSetBookingItemInvoiced(var InvoicedBookingItem: Record "Invoiced Booking Item")` (integration)
  - subscribers: [Codeunit 6722 "Booking Manager Handler"](../codeunit/6722.md) OnSetBookingItemInvoiced
- `OnSynchronize(var BookingItem: Record "Booking Item")` (integration)
  - subscribers: [Codeunit 6722 "Booking Manager Handler"](../codeunit/6722.md) OnSynchronize

## Event subscriptions

- OnAfterModifySalesHeader subscribes to Table "Sales Header" OnAfterModifyEvent
- OnAfterInsertSalesLine subscribes to Table "Sales Line" OnAfterInsertEvent
- OnAfterInsertInvoicedBookingItem subscribes to Table "Invoiced Booking Item" OnAfterInsertEvent
- OnAfterModifySalesLine subscribes to Table "Sales Line" OnAfterModifyEvent
- OnAfterPostSalesDoc subscribes to Codeunit "Sales-Post" OnAfterPostSalesDoc
- OnDeleteSalesInvoice subscribes to Table "Sales Header" OnBeforeDeleteEvent

## Procedures

- `GetAppointmentConnectionName(): Text`
- `GetBookingItems(var TempBookingItem: Record "Booking Item" temporary)`
- `GetBookingMailboxes(var TempBookingMailbox: Record "Booking Mailbox" temporary)`
- `GetBookingServiceForBooking(var TempBookingItem: Record "Booking Item" temporary; var TempBookingService: Record "Booking Service" temporary)`
- `InvoiceBookingItems()`
- `RegisterAppointmentConnection()`
- `SetBookingItemInvoiced(InvoicedBookingItem: Record "Invoiced Booking Item")`
- `Synchronize(var BookingItem: Record "Booking Item")`
- `CreateSalesLine(var SalesHeader: Record "Sales Header"; var BookingItem: Record "Booking Item")`
- `InvoiceItemsForCustomer(var BookingItemSource: Record "Booking Item"; var TempBookingItem: Record "Booking Item" temporary; var SalesHeader: Record "Sales Header"): Boolean`

Plus 4 local procedures.

## Triggers

OnRun

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 3006 "DotNet_DateTimeOffset"](../codeunit/3006.md) (1 call: `GetBookingItems → ConvertToUtcDateTime`)
- [Codeunit 6700 "O365 Sync. Management"](../codeunit/6700.md) (1 call: `InvoiceItemsForCustomer → TraceCategory`)
- [Page 1638 "Booking Items"](../page/1638.md) (1 call: `InvoiceBookingItems → (object)`)

## Called by

- [Codeunit 6722 "Booking Manager Handler"](../codeunit/6722.md) (1 call: `OnRegisterAppointmentConnection → GetAppointmentConnectionName`)
- [Codeunit 6724 "Booking Appointment - Modify"](../codeunit/6724.md) (1 call: `OnRun → RegisterAppointmentConnection`)
- [Page 1638 "Booking Items"](../page/1638.md) (1 call: `InvoiceItemsForCustomer → InvoiceItemsForCustomer`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC28

## Deprecations

- object: guarded (#if not CLEAN28)

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "Booking Manager")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
