---
title: "Codeunit 2003 ML Prediction Management, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/points/
object: https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 2003 ML Prediction Management, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/points/

24 procedures and triggers with a step in src/Layers/W1/BaseApp/System/AI/MLPredictionManagement.Codeunit.al, in source order, read from the text, not from a run.

## Initialize

[Line 51](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L51).

- [57](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L57) calls `DefaultInitialize`

## InitializeWithKeyVaultCredentials

[Line 61](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L61).

- [70](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L70) calls [Codeunit 2006 Azure AI Usage](https://jonas-paprotka.de/ref/codeunit/2006-azure-ai-usage/) `GetTotalProcessingTime`
- [70](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L70) calls [Codeunit 2006 Azure AI Usage](https://jonas-paprotka.de/ref/codeunit/2006-azure-ai-usage/) `GetResourceLimit`
- [73](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L73) calls `GetMachineLearningCredentials`
- [76](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L76) calls `DefaultInitialize`

## SetMessageHandler

[Line 80](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L80).

- [82](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L82) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `SetMessageHandler`

## SetRecord

[Line 85](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L85).

- [90](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L90) calls [Codeunit 701 Data Type Management](https://jonas-paprotka.de/ref/codeunit/701-data-type-management/) `GetRecordRef`

## AddFeature

[Line 100](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L100).

- [104](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L104) calls `MaxNoFeatures`
- [105](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L105) calls `MaxNoFeatures`
- [110](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L110) calls `TestFieldNumber`

## SetLabel

[Line 120](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L120).

- [125](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L125) calls [Codeunit 701 Data Type Management](https://jonas-paprotka.de/ref/codeunit/701-data-type-management/) `GetRecordRef`
- [126](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L126) calls `TestFieldNumber`

## SetConfidence

[Line 130](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L130).

- [135](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L135) calls [Codeunit 701 Data Type Management](https://jonas-paprotka.de/ref/codeunit/701-data-type-management/) `GetRecordRef`
- [136](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L136) calls `TestFieldNumber`

## Train

[Line 153](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L153).

- [159](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L159) raises `OnBeforeTrain`
- [163](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L163) calls `InitializeAzureMLConnector`
- [165](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L165) calls `TestFeatureLabelInitialized`
- [166](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L166) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `AddParameter`
- [167](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L167) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `AddParameter`
- [168](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L168) calls `CreateInput`
- [169](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L169) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `SendToAzureMLInternal`
- [170](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L170) calls `GetLastDetailedError`
- [172](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L172) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `GetOutput`
- [174](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L174) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `GetOutput`

## Predict

[Line 178](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L178).

- [183](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L183) raises `OnBeforePredict`
- [187](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L187) calls `InitializeAzureMLConnector`
- [189](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L189) calls `TestFeatureLabelInitialized`
- [190](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L190) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `AddParameter`
- [191](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L191) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `AddParameter`
- [192](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L192) calls `CreateInput`
- [193](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L193) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `SendToAzureMLInternal`
- [194](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L194) calls `GetLastDetailedError`
- [196](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L196) calls `LoadPrediction`

## Evaluate

[Line 199](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L199).

- [205](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L205) raises `OnBeforeEvaluate`
- [209](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L209) calls `InitializeAzureMLConnector`
- [211](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L211) calls `TestFeatureLabelInitialized`
- [212](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L212) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `AddParameter`
- [213](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L213) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `AddParameter`
- [214](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L214) calls `CreateInput`
- [215](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L215) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `SendToAzureMLInternal`
- [216](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L216) calls `GetLastDetailedError`
- [218](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L218) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `GetOutput`

## PlotModel

[Line 223](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L223).

- [227](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L227) calls `InitializeAzureMLConnector`
- [229](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L229) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `AddParameter`
- [230](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L230) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `AddParameter`
- [232](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L232) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `AddParameter`
- [234](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L234) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `AddParameter`
- [236](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L236) calls `CreateDummyInput`
- [238](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L238) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `SendToAzureMLInternal`
- [239](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L239) calls `GetLastDetailedError`
- [241](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L241) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `GetOutput`

## DownloadPlot

[Line 245](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L245).

- [252](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L252) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `CreateOutStream`
- [253](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L253) calls [Codeunit 4110 Base64 Convert](https://jonas-paprotka.de/ref/codeunit/4110-base64-convert/) `FromBase64`
- [254](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L254) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `CreateInStream`

## IsDataSufficientForClassification

[Line 259](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L259).

- [272](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L272) calls `IsDataSufficientBase`
- [275](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L275) calls `CreateLabelDictionary`
- [300](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L300) calls [Codeunit 10 Type Helper](https://jonas-paprotka.de/ref/codeunit/10-type-helper/) `CalculateLog`
- [301](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L301) calls [Codeunit 10 Type Helper](https://jonas-paprotka.de/ref/codeunit/10-type-helper/) `CalculateLog`

## IsDataSufficientForRegression

[Line 305](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L305).

- [309](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L309) calls `IsDataSufficientBase`

## IsDataSufficientBase

[Line 312](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L312).

- [316](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L316) calls `TestFeatureLabelInitialized`
- [317](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L317) calls [Codeunit 701 Data Type Management](https://jonas-paprotka.de/ref/codeunit/701-data-type-management/) `GetRecordRef`

## InitializeAzureMLConnector

[Line 328](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L328), local.

- [330](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L330) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `Initialize`
- [331](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L331) calls `GetLastDetailedError`

## TestFieldNumber

[Line 354](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L354), local.

- [359](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L359) calls [Codeunit 701 Data Type Management](https://jonas-paprotka.de/ref/codeunit/701-data-type-management/) `GetRecordRef`

## CreateInput

[Line 379](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L379), local.

- [386](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L386) calls `MaxNoFeatures`
- [387](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L387) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `AddInputColumnName`
- [388](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L388) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `AddInputColumnName`
- [390](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L390) calls [Codeunit 701 Data Type Management](https://jonas-paprotka.de/ref/codeunit/701-data-type-management/) `GetRecordRef`
- [395](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L395) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `AddInputRow`
- [396](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L396) calls `MaxNoFeatures`
- [401](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L401) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `AddInputValue`
- [402](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L402) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `AddParameter`
- [404](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L404) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `AddInputValue`
- [409](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L409) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `AddInputValue`
- [410](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L410) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `AddParameter`

## CreateDummyInput

[Line 416](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L416), local.

- [420](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L420) calls `MaxNoFeatures`
- [421](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L421) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `AddInputColumnName`
- [422](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L422) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `AddInputColumnName`
- [424](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L424) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `AddInputRow`
- [425](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L425) calls `MaxNoFeatures`
- [426](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L426) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `AddInputValue`

## GetParameter

[Line 429](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L429).

- [433](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L433) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `GetParameter`

## GetInput

[Line 437](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L437).

- [441](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L441) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `GetInput`

## GetInputLength

[Line 445](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L445).

- [449](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L449) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `GetInputLength`

## LoadPrediction

[Line 467](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L467), local.

- [481](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L481) calls `MaxNoFeatures`
- [483](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L483) calls [Codeunit 701 Data Type Management](https://jonas-paprotka.de/ref/codeunit/701-data-type-management/) `GetRecordRef`
- [487](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L487) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `GetOutput`
- [490](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L490) calls [Codeunit 8617 Config. Validate Management](https://jonas-paprotka.de/ref/codeunit/8617-config-validate-management/) `EvaluateValueWithValidate`
- [493](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L493) calls [Codeunit 2001 Azure ML Connector](https://jonas-paprotka.de/ref/codeunit/2001-azure-ml-connector/) `GetOutput`
- [496](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L496) calls [Codeunit 8617 Config. Validate Management](https://jonas-paprotka.de/ref/codeunit/8617-config-validate-management/) `EvaluateValueWithValidate`

## GetMachineLearningCredentials

[Line 511](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L511).

- [515](https://jonas-paprotka.de/ref/codeunit/2003-ml-prediction-management/source/#L515) calls [Codeunit 2004 Machine Learning KeyVaultMgmt.](https://jonas-paprotka.de/ref/codeunit/2004-machine-learning-keyvaultmgmt/) `GetMachineLearningCredentials`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
