---
title: "Codeunit 311 Item-Check Avail."
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/311-item-check-avail/
type: codeunit
id: 311
name: "Item-Check Avail."
app: "Base Application"
namespace: Microsoft.Inventory.Availability
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/311-item-check-avail/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 311 Item-Check Avail.

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/311-item-check-avail/

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

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| ItemJnlCheckLine | (Record Item Journal Line) | Boolean | public | 17-28 | - | - |
| SalesLineCheck | (Record Sales Line) | Boolean | public | 17-28 | - | - |
| TransferLineCheck | (Record Transfer Line) | Boolean | public | 17-28 | - | - |
| ServiceInvLineCheck | (Record Service Line) | Boolean | public | 17-27 | Pending 25.0 | Moved to codeunit ServItemChackAvail |
| JobPlanningLineCheck | (Record Job Planning Line) | Boolean | public | 17-28 | - | - |
| AssemblyLineCheck | (Record Assembly Line) | Boolean | public | 17-28 | - | - |
| ShowAsmWarningYesNo | (var Record Assembly Header, var Record Assembly Line) | Boolean | public | 17-28 | - | - |
| ItemJnlLineShowWarning | (Record Item Journal Line) | Boolean | public | 17-28 | - | - |
| SalesLineShowWarning | (Record Sales Line) | Boolean | public | 17-28 | - | - |
| ShowWarning | (Code[20], Code[10], Code[10], Code[10], Decimal, Decimal, Decimal, Date, Date) | Boolean | public | 17-28 | - | - |
| TransferLineShowWarning | (Record Transfer Line) | Boolean | public | 17-28 | - | - |
| ServiceInvLineShowWarning | (Record Service Line) | Boolean | public | 17-27 | Pending 25.0 | Moved to codeunit ServItemChackAvail |
| JobPlanningLineShowWarning | (Record Job Planning Line) | Boolean | public | 17-28 | - | - |
| AsmOrderLineShowWarning | (Record Assembly Line) | Boolean | public | 17-28 | - | - |
| AsmOrderCalculate | (Record Assembly Header, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal) | - | public | 17-28 | - | - |
| FetchCalculation | (var Code[20], var Code[10], var Decimal, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal, var Date) | - | public | 17-28 | - | - |
| RaiseUpdateInterruptedError | () | - | public | 17-28 | - | - |
| ShowAndHandleAvailabilityPage | (RecordId) | Boolean | public | 17-28 | - | - |
| ShowNotificationDetails | (Notification) | - | public | 17-28 | - | - |
| ShowWarningForThisItem | (Code[20]) | Boolean | public | 17-28 | - | - |
| GetItemAvailabilityNotificationId | () | Guid | public | 17-28 | - | - |
| InvtDocCheckLine | (Record Invt. Document Line) | Boolean | public | 18-28 | - | - |
| ItemDocLineShowWarning | (Record Invt. Document Line) | Boolean | public | 18-28 | - | - |
| DeactivateNotification | (Notification) | - | public | 18-28 | - | - |
| SetUseOrderPromise | (Boolean) | - | public | 19-28 | - | - |
| RunOnBeforeServiceInvLineCheck | (Record Service Line, var Boolean, var Boolean) | - | internal | 25-27 | - | - |
| RunOnServiceInvLineShowWarningOnBeforeShowWarning | (Record Service Line, var Dictionary, Record Service Line, var Decimal, var Boolean, var Boolean) | - | internal | 25-27 | - | - |
| RunOnServiceInvLineShowWarningOnAfterFindingPrevServiceLineQtyWithinPeriod | (Record Service Line, Record Service Line, var Boolean) | - | internal | 25-27 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterCalculate | (var Record Item, var Decimal, Decimal, Decimal, var Dictionary) | 17-28 | - | - |
| Integration event | OnAfterItemJnlLineShowWarning | (var Record Item Journal Line, var Decimal, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeQtyAvailToPromise | (var Record Item, var Record Company Information, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeCreateAndSendNotification | (Code[20], Code[20], Decimal, Decimal, Decimal, Decimal, Decimal, Decimal, Decimal, Decimal, Date, RecordId, Code[10], Dictionary, var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeSalesLineCheck | (Record Sales Line, var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeSalesLineShowWarning | (Record Sales Line, var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeSetFilterOnItem | (var Record Item, Code[20], Code[10], Code[10], Date, Boolean, var Boolean) | 17-19 | - | - |
| Integration event | OnBeforeShowWarningForThisItem | (Record Item, var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnSalesLineShowWarningOnBeforeShowWarning | (Record Sales Line, var Dictionary, Record Sales Line, var Boolean, var Boolean) | 17 | - | - |
| Integration event | OnCalculateOnBeforeCalcInitialQtyAvailable | (Record Item, Decimal, Decimal, Decimal, Decimal, Decimal, Decimal, Dictionary) | 17 | - | - |
| Integration event | OnBeforeTransferLineCheck | (Record Transfer Line, var Boolean, var Boolean) | 18-28 | - | - |
| Integration event | OnSalesLineShowWarningOnBeforeShowWarning | (Record Sales Line, var Dictionary, Record Sales Line, var Boolean, var Boolean, var Decimal) | 18-28 | - | - |
| Integration event | OnCalculateOnBeforeCalcInitialQtyAvailable | (Record Item, var Decimal, var Decimal, var Decimal, var Decimal, Decimal, Decimal, Dictionary) | 18-23 | - | - |
| Integration event | OnBeforeRaiseUpdateInterruptedError | (var Boolean) | 19 | - | - |
| Integration event | OnAsmOrderLineShowWarningOnBeforeShowWarning | (Record Assembly Line, var Dictionary, Record Assembly Line, var Decimal, var Boolean, var Boolean) | 19-28 | - | - |
| Integration event | OnItemDocLineShowWarningOnBeforeShowWarning | (Record Invt. Document Line, var Dictionary, var Decimal, var Boolean, var Boolean) | 19-28 | - | - |
| Integration event | OnJobPlanningLineShowWarningOnBeforeShowWarning | (Record Job Planning Line, var Dictionary, Record Job Planning Line, var Decimal, var Boolean, var Boolean) | 19-28 | - | - |
| Integration event | OnServiceInvLineShowWarningOnBeforeShowWarning | (Record Service Line, var Dictionary, Record Service Line, var Decimal, var Boolean, var Boolean) | 19-27 | Pending 25.0 | Moved to codeunit ServItemAvailMgt |
| Integration event | OnTransferLineShowWarningOnBeforeShowWarning | (Record Transfer Line, var Dictionary, Record Transfer Line, var Decimal, var Boolean, var Boolean) | 19-28 | - | - |
| Integration event | OnBeforeRaiseUpdateInterruptedError | (var Boolean, Dictionary) | 20-28 | - | - |
| Integration event | OnBeforeSetFilterOnItem | (var Record Item, Code[20], Code[10], Code[10], Date, Boolean, var Boolean, Code[10]) | 20-28 | - | - |
| Integration event | OnBeforeTransferLineShowWarning | (Record Transfer Line, var Boolean, var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeServiceInvLineCheck | (Record Service Line, var Boolean, var Boolean) | 20-27 | Pending 25.0 | Moved to codeunit ServItemAvailMgt |
| Integration event | OnAfterConvertQty | (Code[20], Decimal, var Decimal, var Decimal) | 21-28 | - | - |
| Integration event | OnAfterConvertQtyToBaseQty | (Code[20], Decimal, var Decimal, var Decimal) | 21-28 | - | - |
| Integration event | OnBeforeShowWarningForThisItemOnBeforeItemGet | (Code[20], var Boolean, var Boolean) | 23-28 | - | - |
| Integration event | OnShowWarningOnAfterCalculate | (Code[20], Decimal, Decimal, Decimal, Decimal, var Boolean, var Boolean) | 23-28 | - | - |
| Integration event | OnAfterShowAndHandleAvailabilityPage | (Code[20], Code[10], Decimal, Decimal, Decimal, Decimal, Decimal, Decimal, Decimal, Decimal, Date, var Boolean) | 23-28 | - | - |
| Integration event | OnServiceInvLineShowWarningOnAfterFindingPrevServiceLineQtyWithinPeriod | (Record Service Line, Record Service Line, var Boolean) | 23-27 | Pending 25.0 | Moved to codeunit ServItemAvailMgt |
| Integration event | OnSalesLineShowWarningOnAfterFindingPrevSalesLineQtyWithinPeriod | (Record Sales Line, Record Sales Line, var Boolean) | 23-28 | - | - |
| Integration event | OnAsmOrderCalculateOnAfterFindingPrevAsmOrderCalculateWithinPeriod | (Record Assembly Header, Record Assembly Header, var Boolean) | 23-28 | - | - |
| Integration event | OnJobPlanningLineShowWarningOnAfterFindingPrevJobPlanningLineQtyWithinPeriod | (Record Job Planning Line, Record Job Planning Line, var Boolean) | 23-28 | - | - |
| Integration event | OnCalculateOnBeforeCalcInitialQtyAvailable | (Record Item, var Decimal, var Decimal, var Decimal, var Decimal, Decimal, Decimal, Dictionary, var Decimal) | 24-28 | - | - |
| Integration event | OnSalesLineCheckOnAfterSalesLineShowWarning | (var Record Sales Line, var Boolean) | 24-28 | - | - |
| Integration event | OnAsmOrderLineShowWarningOnAfterFindPreviousAssemblyOrderLineWithinPeriod | (Record Assembly Line, Record Assembly Line, var Boolean, var Decimal, var Decimal) | 24-28 | - | - |
| Integration event | OnBeforeItemJnlCheckLine | (var Record Item Journal Line, var Boolean, 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.
