---
title: "Codeunit 2000 Time Series Management"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/2000-time-series-management/
type: codeunit
id: 2000
name: "Time Series Management"
app: "Base Application"
namespace: System.AI
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/2000-time-series-management/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 2000 Time Series Management

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/2000-time-series-management/

| | |
| --- | --- |
| App | Base Application |
| Namespace | System.AI |
| Versions | 17-28 |
| Source file | System/AI/TimeSeriesManagement.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| Initialize | (Text, Text, Integer, Boolean) | Boolean | public | 17-26 | Pending 24.0 | Use Initialize(Uri: SecretText; "Key": SecretText; TimeOutSeconds: Integer; UseStdCredentials: Boolean) instead. |
| SetMessageHandler | (DotNet HttpMessageHandler) | - | public | 17-28 | - | - |
| PrepareData | (Variant, Integer, Integer, Integer, Option, Date, Integer) | - | public | 17-28 | - | - |
| SetPreparedData | (var Record Time Series Buffer, Option, Date, Integer) | - | public | 17-28 | - | - |
| GetPreparedData | (var Record Time Series Buffer) | - | public | 17-28 | - | - |
| Forecast | (Integer, Integer, Option) | - | public | 17-28 | - | - |
| GetForecast | (var Record Time Series Forecast) | - | public | 17-28 | - | - |
| GetState | (var Option) | - | public | 17-28 | - | - |
| GetOutput | (Integer, Integer) | Text | public | 17-28 | - | - |
| GetOutputLength | () | Integer | public | 17-28 | - | - |
| GetInput | (Integer, Integer) | Text | public | 17-28 | - | - |
| GetInputLength | () | Integer | public | 17-28 | - | - |
| GetParameter | (Text) | Text | public | 17-28 | - | - |
| SetMinimumHistoricalPeriods | (Integer) | - | public | 17-28 | - | - |
| SetMaximumHistoricalPeriods | (Integer) | - | public | 17-28 | - | - |
| HasMinimumHistoricalData | (var Integer, Variant, Integer, Option, Date) | Boolean | public | 17-28 | - | - |
| GetTimeSeriesModelOption | (Text) | Integer | public | 17-28 | - | - |
| GetMLForecastCredentials | (var Text[250], var Text[200], var Option, var Decimal) | Boolean | public | 17-26 | Pending 24.0 | Use GetMLForecastCredentials(var Uri: Text[250]; var "Key": SecretText; var LimitType: Option; var Limit: Decimal) instead. |
| InitializeFromCashFlowSetup | (Option) | Boolean | public | 20-28 | - | - |
| GetMLForecastCredentials | (var Text[250], var SecretText, var Option, var Decimal) | Boolean | public | 23-28 | - | - |
| Initialize | (Text, SecretText, Integer, Boolean) | Boolean | public | 24-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.
