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

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/2020-image-analysis-management/

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

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| Initialize | () | - | public | 17-28 | - | - |
| SetMedia | (Guid) | - | public | 17-28 | - | - |
| SetImagePath | (Text) | - | public | 17-28 | - | - |
| SetBlob | (Codeunit Temp Blob) | - | public | 17-28 | - | - |
| SetUriAndKey | (Text, Text) | - | public | 17-26 | Pending 24.0 | Replaced by SetUriAndKey with SecretText data type for KeyValue parameter. |
| SetLimitInYears | (Integer) | - | public | 17-28 | - | - |
| SetLimitInMonths | (Integer) | - | public | 17-28 | - | - |
| SetLimitInDays | (Integer) | - | public | 17-28 | - | - |
| SetLimitInHours | (Integer) | - | public | 17-28 | - | - |
| AnalyzeTags | (var Codeunit Image Analysis Result) | Boolean | public | 17-28 | - | - |
| AnalyzeColors | (var Codeunit Image Analysis Result) | Boolean | public | 17-28 | - | - |
| AnalyzeFaces | (var Codeunit Image Analysis Result) | Boolean | public | 17-28 | - | - |
| SetHttpMessageHandler | (DotNet HttpMessageHandler) | - | public | 17-28 | - | - |
| GetLastError | (var Text, var Boolean) | Boolean | public | 17-28 | - | - |
| GetNoImageErr | () | Text | public | 17-28 | - | - |
| HasError | () | Boolean | public | 17-28 | - | - |
| GetLimitParams | (var Option, var Integer) | - | public | 17-28 | - | - |
| GetImageAnalysisCredentials | (var Text, var Text, var Option, var Integer) | Boolean | public | 17-26 | Pending 24.0 | Replaced by GetImageAnalysisCredentials with SecretText data type for ApiKey parameter. |
| Initialize | (Enum Image Analysis Provider) | - | public | 22-28 | - | - |
| Analyze | (var Codeunit Image Analysis Result, Enum Image Analysis Type) | Boolean | public | 22-28 | - | - |
| Analyze | (var Codeunit Image Analysis Result, List) | Boolean | public | 22-28 | - | - |
| GetTelemetryCategory | () | Text | public | 22-28 | - | - |
| IsCurrentUserLanguageSupported | (List) | Boolean | public | 22-28 | - | - |
| ToCommaSeparatedList | (List) | Text | internal | 22-28 | - | - |
| SetUriAndKey | (Text, SecretText) | - | public | 24-28 | - | - |
| GetImageAnalysisCredentials | (var SecretText, var Text, var Option, var Integer) | Boolean | public | 24-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeImageAnalysis | () | 17-28 | - | - |
| Integration event | OnAfterImageAnalysis | (Codeunit Image Analysis Result) | 17-28 | - | - |
| Internal event | OnBeforeSendImageAnalysisRequest | (HttpContent, Text, var Integer, var Text, var Boolean) | 23-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.
