---
title: "Codeunit 99000889 AvailabilityManagement"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/99000889-availabilitymanagement/
type: codeunit
id: 99000889
name: "AvailabilityManagement"
app: "Base Application"
namespace: Microsoft.Inventory.Availability
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/99000889-availabilitymanagement/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 99000889 AvailabilityManagement

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/99000889-availabilitymanagement/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Inventory.Availability |
| Versions | 17-28 |
| Source file | Inventory/Availability/AvailabilityManagement.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| GetCaption | () | Text | public | 17-28 | - | - |
| SetSalesHeader | (var Record Order Promising Line, var Record Sales Header) | - | public | 17-27 | Pending 25.0 | Moved to codeunit ServAvailabilityMgt |
| SetServHeader | (var Record Order Promising Line, var Record Service Header) | - | public | 17-27 | Pending 25.0 | Moved to codeunit ServAvailabilityMgt |
| SetJob | (var Record Order Promising Line, var Record Job) | - | public | 17-27 | Pending 25.0 | Moved to codeunit JobPlanningAvailabilityMgt |
| CalcAvailableQty | (var Record Order Promising Line) | Decimal | public | 17-28 | - | - |
| CalcCapableToPromise | (var Record Order Promising Line, var Code[20]) | - | public | 17-28 | - | - |
| CalcAvailableToPromise | (var Record Order Promising Line) | - | public | 17-28 | - | - |
| UpdateSource | (var Record Order Promising Line) | - | public | 17-28 | - | - |
| CancelReservations | () | - | public | 19-28 | - | - |
| SetSourceRecord | (var Record Order Promising Line, Variant) | - | public | 25-28 | - | - |
| InsertPromisingLine | (var Record Order Promising Line, Decimal) | - | internal | 25-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterCaseCalcCapableToPromise | (var Record Order Promising Line, var Record Company Information, var Code[20], var Integer) | 17-28 | - | - |
| Integration event | OnAfterUpdateSourceLine | (var Record Order Promising Line) | 17-28 | - | - |
| Integration event | OnBeforeOrderPromisingLineInsert | (var Record Order Promising Line) | 17-28 | - | - |
| Integration event | OnCalcAvailableToPromiseLineOnAfterSetFilters | (var Record Item, var Record Order Promising Line) | 17-28 | - | - |
| Integration event | OnCalcAvailableToPromiseLineOnBeforeModify | (var Record Order Promising Line) | 17-28 | - | - |
| Integration event | OnCreateReservationsAfterFirstCASE | (var Record Order Promising Line, var Decimal, var Decimal) | 17-28 | - | - |
| Integration event | OnCreateReservationsAfterSecondCASE | (var Record Order Promising Line, var Record Requisition Line, var Decimal, var Decimal) | 17-28 | - | - |
| Integration event | OnBeforeCalcCapableToPromise | (var Record Order Promising Line, var Record Company Information, var Code[20], var Integer, var Boolean) | 22-28 | - | - |
| Integration event | OnSetSourceRecord | (var Record Order Promising Line, Integer, var Variant, var Text) | 25-28 | - | - |
| Integration event | OnCalcCapableToPromiseLine | (var Record Order Promising Line, var Record Company Information, var Code[20], var Integer) | 25-28 | - | - |
| Integration event | OnGetRequestedDeliveryDate | (var Record Order Promising Line, var Date) | 25-28 | - | - |
| Integration event | OnUpdateSourceLine | (var Record Order Promising Line) | 25-28 | - | - |
| Integration event | OnCreateReservationsOnCalcNeededQuantity | (var Record Order Promising Line, var Decimal, var Decimal) | 25-28 | - | - |
| Integration event | OnCreateReservationsOnBindToTracking | (var Record Order Promising Line, Record Requisition Line, Decimal, Decimal, var Record Record Buffer) | 25-28 | - | - |
| Integration event | OnCancelReservations | (var Record Record Buffer) | 25-28 | - | - |
| Integration event | OnAfterShouldCalculateAvailableToPromise | (var Record Order Promising Line, var Boolean) | 25-28 | - | - |
| Integration event | OnCalcAvailableToPromiseLineOnAfterSetOriginalShipmentDate | (var Record Order Promising Line, Record Item, Record Company Information, var Codeunit Available to Promise) | 25-28 | - | - |
| Integration event | OnAfterCalcCapableToPromise | (Code[20]) | 27-28 | - | - |
| Integration event | OnBeforeUpdateSource | (var Record Order Promising Line, var Boolean) | 28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
