Codeunit 2020 Image Analysis Management

Base Application, System.AI

Source AL, 439 lines

src/Layers/W1/BaseApp/System/AI/ImageAnalysis/ImageAnalysisManagement.Codeunit.allines 11 to 26 of 439, Copyright (c) Microsoft Corporation. MIT

codeunit 2020 "Image Analysis Management"{    var        [NonDebuggable]        "Key": SecretText;        Uri: Text;        LimitType: Option Year,Month,Day,Hour;        LimitValue: Integer;        ImagePath: Text;        SetMediaErr: Label 'There was a problem uploading the image file. Please try again.';        NoApiKeyUriErr: Label 'To analyze images, you must provide an API key and an API URI for Computer Vision.';        NoImageErr: Label 'You haven''t uploaded an image to analyze.';        LastError: Text;        IsLastErrorUsageLimitError: Boolean;        UseOAuth2: Boolean;        IsInitialized: Boolean;

All 439 lines

Events 3 in 29

[IntegrationEvent] OnBeforeImageAnalysis()17-29
[IntegrationEvent] OnAfterImageAnalysis(ImageAnalysisResult: Codeunit "Image Analysis Result")17-29
[InternalEvent] OnBeforeSendImageAnalysisRequest(HttpContent: HttpContent; RequestUrl: Text; var HttpStatusCode: Integer; var HttpResponseContentText: Text; var Handled: Boolean)new in 23

Public procedures 23 in 29

Initialize()17-29
SetMedia(MediaId: Guid)17-29
SetImagePath(Path: Text)17-29
SetBlob(TempBlob: Codeunit "Temp Blob")17-29
SetLimitInYears(Value: Integer)17-29
SetLimitInMonths(Value: Integer)17-29

All 26 procedures in 17-29

Changes 2 in 27

List17181920212223242526272829
Procedures742
Events1
SetUriAndKey(UriValue: Text; KeyValue: Text)gone after 26
gone
GetImageAnalysisCredentials(var ApiKey: Text; var ApiUri: Text; var LocalLimitType: Option; var LocalLimitValue: Integer): Booleangone after 26changed in 22
gone

All 14 changes in 17-29