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

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/2021-image-analysis-result/

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

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| SetJson | (Codeunit JSON Management, Option) | - | public | 17-24 | Pending 22.0 | Use SetResult with an Enum::"Image Analysis Type" as second parameter instead. |
| TagCount | () | Integer | public | 17-28 | - | - |
| TagName | (Integer) | Text | public | 17-28 | - | - |
| TagConfidence | (Integer) | Decimal | public | 17-28 | - | - |
| DominantColorForeground | () | Text | public | 17-28 | - | - |
| DominantColorBackground | () | Text | public | 17-28 | - | - |
| DominantColorCount | () | Integer | public | 17-28 | - | - |
| DominantColor | (Integer) | Text | public | 17-28 | - | - |
| FaceCount | () | Integer | public | 17-27 | Pending 25.0 | Image analysis for face is being removed. There is no replacement. |
| FaceAge | (Integer) | Integer | public | 17-27 | Pending 25.0 | Image analysis for face is being removed. There is no replacement. |
| FaceGender | (Integer) | Text | public | 17-27 | Pending 25.0 | Image analysis for face is being removed. There is no replacement. |
| GetLatestAnalysisType | (var Option) | - | public | 17-24 | Pending 22.0 | Use GetLatestImageAnalysisTypes instead. |
| SetResult | (Codeunit JSON Management, Enum Image Analysis Type) | - | public | 22-28 | - | - |
| SetResult | (Codeunit JSON Management, List) | - | public | 22-28 | - | - |
| GetResultVerbatim | () | Text | internal | 22-28 | - | - |
| GetLatestImageAnalysisTypes | (var List) | - | public | 22-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.
