---
title: "Codeunit 5540 Calc. Item Avail. Timeline"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/5540-calc-item-avail-timeline/
type: codeunit
id: 5540
name: "Calc. Item Avail. Timeline"
app: "Base Application"
namespace: Microsoft.Inventory.Availability
versions: "17-23"
build: 23.5.16502.31399
obsolete: "Pending 21.0"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 5540 Calc. Item Avail. Timeline

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/5540-calc-item-avail-timeline/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Inventory.Availability |
| Versions | 17-23 |
| Obsolete | Pending 21.0, seen from 21. This codeunit is obsolete as the TimeLineVisualizer is not available on the web client. |
| Source file | Inventory/Availability/CalcItemAvailTimeline.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| Initialize | (var Record Item, Code[10], Boolean, Date, Boolean) | - | public | 17-23 | - | - |
| CreateTimelineEvents | (var Record Timeline Event) | - | public | 17-23 | - | - |
| InsertTimelineEvent | (var Record Timeline Event, Record Inventory Event Buffer) | - | public | 17-23 | - | - |
| FindLocationWithinFilter | (Text) | Code[10] | public | 17-23 | - | - |
| FindVariantWithinFilter | (Code[20], Text) | Code[10] | public | 17-23 | - | - |
| BlankValue | () | Text[2] | public | 17-23 | - | - |
| ShowDocument | (RecordId) | - | public | 17-23 | - | - |
| InitialTimespanDays | () | Integer | public | 17-23 | - | - |
| FinalTimespanDays | () | Integer | public | 17-23 | - | - |
| FinalTransactionType | () | Integer | public | 17-23 | - | - |
| TransferChangesToPlanningWksh | (var Record Timeline Event Change, Code[20], Text, Text, Code[10], Code[10]) | Boolean | public | 17-23 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnCreateTimelineEventsBeforePlanning | (var Record Timeline Event, var Record Inventory Event Buffer) | 17-23 | - | - |
| Integration event | OnAfterUpdateTimelineEventDetails | (var Record Timeline Event, Record Inventory Event Buffer) | 17-23 | - | - |
| Integration event | OnMapToTimelineTransactionTypeOnBeforeError | (var Record Timeline Event, Record Inventory Event Buffer, var Boolean) | 17-23 | - | - |

## 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.

Jonas Paprotka, 2026-09-20.
