---
title: "Codeunit 7772 Azure OpenAI Impl, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/points/
object: https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/
app: "System Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/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 7772 Azure OpenAI Impl, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/points/

28 procedures and triggers with a step in src/System Application/App/AI/src/Azure OpenAI/AzureOpenAIImpl.Codeunit.al, in source order, read from the text, not from a run.

## IsEnabled

[Line 66](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L66).

- [68](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L68) calls [Codeunit 7774 Copilot Capability Impl](https://jonas-paprotka.de/ref/codeunit/7774-copilot-capability-impl/) `IsCapabilityEnabled`

## IsEnabled

[Line 71](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L71).

- [73](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L73) calls [Codeunit 7774 Copilot Capability Impl](https://jonas-paprotka.de/ref/codeunit/7774-copilot-capability-impl/) `IsCapabilityEnabled`

## SetCopilotCapability

[Line 76](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L76).

- [78](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L78) calls [Codeunit 7774 Copilot Capability Impl](https://jonas-paprotka.de/ref/codeunit/7774-copilot-capability-impl/) `SetCopilotCapability`

## IsAuthorizationConfigured

[Line 81](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L81).

- [85](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L85) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `IsConfigured`
- [87](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L87) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `IsConfigured`
- [89](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L89) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `IsConfigured`

## IsInitialized

[Line 95](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L95).

- [97](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L97) calls `IsEnabled`
- [97](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L97) calls `IsAuthorizationConfigured`

## GetFastPrompt

[Line 101](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L101).

- [112](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L112) calls [Codeunit 7774 Copilot Capability Impl](https://jonas-paprotka.de/ref/codeunit/7774-copilot-capability-impl/) `CheckCapabilitySet`
- [113](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L113) calls [Codeunit 7774 Copilot Capability Impl](https://jonas-paprotka.de/ref/codeunit/7774-copilot-capability-impl/) `CheckEnabled`
- [115](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L115) calls `CheckAuthorizationEnabled`
- [116](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L116) calls [Codeunit 7774 Copilot Capability Impl](https://jonas-paprotka.de/ref/codeunit/7774-copilot-capability-impl/) `AddTelemetryCustomDimensions`
- [118](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L118) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `GetResourceUtilization`
- [120](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L120) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `GetManagedResourceDeployment`
- [126](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L126) calls [Codeunit 7774 Copilot Capability Impl](https://jonas-paprotka.de/ref/codeunit/7774-copilot-capability-impl/) `GetCapabilityName`
- [135](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L135) calls [Codeunit 7789 AOAI Fast Prompt Response](https://jonas-paprotka.de/ref/codeunit/7789-aoai-fast-prompt-response/) `Set`
- [138](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L138) calls [Codeunit 8703 Feature Telemetry](https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/) `LogError`
- [138](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L138) calls `GetAzureOpenAICategory`
- [142](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L142) calls [Codeunit 7789 AOAI Fast Prompt Response](https://jonas-paprotka.de/ref/codeunit/7789-aoai-fast-prompt-response/) `Set`
- [144](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L144) calls [Codeunit 7789 AOAI Fast Prompt Response](https://jonas-paprotka.de/ref/codeunit/7789-aoai-fast-prompt-response/) `IsFastPrompt`
- [144](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L144) calls [Codeunit 7789 AOAI Fast Prompt Response](https://jonas-paprotka.de/ref/codeunit/7789-aoai-fast-prompt-response/) `GetTemplate`
- [145](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L145) calls [Codeunit 8703 Feature Telemetry](https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/) `LogUsage`
- [145](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L145) calls `GetAzureOpenAICategory`

## SetAuthorization

[Line 152](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L152).

- [156](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L156) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `SetFirstPartyAuthorization`
- [158](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L158) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `SetFirstPartyAuthorization`
- [160](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L160) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `SetFirstPartyAuthorization`

## SetAuthorization

[Line 167](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L167).

- [171](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L171) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `SetSelfManagedAuthorization`
- [173](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L173) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `SetSelfManagedAuthorization`
- [175](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L175) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `SetSelfManagedAuthorization`

## SetManagedResourceAuthorization

[Line 183](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L183).

- [187](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L187) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `SetMicrosoftManagedAuthorization`
- [189](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L189) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `SetMicrosoftManagedAuthorization`
- [191](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L191) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `SetMicrosoftManagedAuthorization`

## SetManagedResourceAuthorization

[Line 209](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L209).

- [213](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L213) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `SetMicrosoftManagedAuthorization`
- [215](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L215) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `SetMicrosoftManagedAuthorization`
- [217](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L217) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `SetMicrosoftManagedAuthorization`

## GenerateTextCompletion

[Line 226](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L226).

- [230](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L230) calls `GetTextMetaprompt`

## GenerateTextCompletion

[Line 234](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L234).

- [236](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L236) calls `GetTextMetaprompt`

## GenerateTextCompletion

[Line 248](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L248).

- [255](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L255) calls `GuiCheck`
- [257](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L257) calls [Codeunit 7774 Copilot Capability Impl](https://jonas-paprotka.de/ref/codeunit/7774-copilot-capability-impl/) `CheckCapabilitySet`
- [258](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L258) calls [Codeunit 7774 Copilot Capability Impl](https://jonas-paprotka.de/ref/codeunit/7774-copilot-capability-impl/) `CheckEnabled`
- [259](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L259) calls `CheckAuthorizationEnabled`
- [261](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L261) calls [Codeunit 7774 Copilot Capability Impl](https://jonas-paprotka.de/ref/codeunit/7774-copilot-capability-impl/) `AddTelemetryCustomDimensions`
- [262](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L262) calls `CheckTextCompletionMetaprompt`
- [265](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L265) calls `RemoveProhibitedCharacters`
- [267](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L267) calls [Codeunit 7765 AOAI Text Completion Params](https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/) `AddCompletionsParametersToPayload`
- [271](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L271) calls `SendTokenCountTelemetry`
- [271](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L271) calls [Codeunit 7759 AOAI Token](https://jonas-paprotka.de/ref/codeunit/7759-aoai-token/) `GetGPT4TokenCount`
- [271](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L271) calls [Codeunit 7759 AOAI Token](https://jonas-paprotka.de/ref/codeunit/7759-aoai-token/) `GetGPT4TokenCount`
- [273](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L273) calls `SendRequest`
- [274](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L274) calls [Codeunit 8703 Feature Telemetry](https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/) `LogError`
- [274](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L274) calls `GetAzureOpenAICategory`
- [278](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L278) calls [Codeunit 8703 Feature Telemetry](https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/) `LogUsage`
- [278](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L278) calls `GetAzureOpenAICategory`
- [279](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L279) calls [Codeunit 7770 AOAI Operation Response](https://jonas-paprotka.de/ref/codeunit/7770-aoai-operation-response/) `GetResult`

## GenerateEmbeddings

[Line 285](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L285).

- [291](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L291) calls `GuiCheck`
- [293](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L293) calls [Codeunit 7774 Copilot Capability Impl](https://jonas-paprotka.de/ref/codeunit/7774-copilot-capability-impl/) `CheckCapabilitySet`
- [294](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L294) calls [Codeunit 7774 Copilot Capability Impl](https://jonas-paprotka.de/ref/codeunit/7774-copilot-capability-impl/) `CheckEnabled`
- [295](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L295) calls `CheckAuthorizationEnabled`
- [300](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L300) calls [Codeunit 7774 Copilot Capability Impl](https://jonas-paprotka.de/ref/codeunit/7774-copilot-capability-impl/) `AddTelemetryCustomDimensions`
- [301](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L301) calls `SendTokenCountTelemetry`
- [301](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L301) calls [Codeunit 7759 AOAI Token](https://jonas-paprotka.de/ref/codeunit/7759-aoai-token/) `GetAdaTokenCount`
- [302](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L302) calls `SendRequest`
- [303](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L303) calls [Codeunit 8703 Feature Telemetry](https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/) `LogError`
- [303](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L303) calls `GetAzureOpenAICategory`
- [307](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L307) calls [Codeunit 8703 Feature Telemetry](https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/) `LogUsage`
- [307](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L307) calls `GetAzureOpenAICategory`
- [308](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L308) calls `ProcessEmbeddingResponse`

## ProcessEmbeddingResponse

[Line 312](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L312), local.

- [319](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L319) calls [Codeunit 7770 AOAI Operation Response](https://jonas-paprotka.de/ref/codeunit/7770-aoai-operation-response/) `GetResult`

## GenerateChatCompletion

[Line 336](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L336).

- [348](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L348) calls `GuiCheck`
- [350](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L350) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `GetResourceUtilization`
- [352](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L352) calls [Codeunit 7763 AOAI Chat Messages](https://jonas-paprotka.de/ref/codeunit/7763-aoai-chat-messages/) `CheckCompatibilityWithModel`
- [352](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L352) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `GetManagedResourceDeployment`
- [353](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L353) calls [Codeunit 7774 Copilot Capability Impl](https://jonas-paprotka.de/ref/codeunit/7774-copilot-capability-impl/) `CheckCapabilitySet`
- [354](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L354) calls [Codeunit 7774 Copilot Capability Impl](https://jonas-paprotka.de/ref/codeunit/7774-copilot-capability-impl/) `CheckEnabled`
- [355](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L355) calls `CheckAuthorizationEnabled`
- [356](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L356) calls [Codeunit 7774 Copilot Capability Impl](https://jonas-paprotka.de/ref/codeunit/7774-copilot-capability-impl/) `AddTelemetryCustomDimensions`
- [358](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L358) calls [Codeunit 7761 AOAI Chat Completion Params](https://jonas-paprotka.de/ref/codeunit/7761-aoai-chat-completion-params/) `AddChatCompletionsParametersToPayload`
- [360](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L360) calls [Codeunit 7761 AOAI Chat Completion Params](https://jonas-paprotka.de/ref/codeunit/7761-aoai-chat-completion-params/) `GetAOAIPolicyParams`
- [361](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L361) calls [Codeunit 7787 AOAI Policy Params](https://jonas-paprotka.de/ref/codeunit/7787-aoai-policy-params/) `IsDefaultPolicy`
- [363](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L363) calls [Codeunit 7787 AOAI Policy Params](https://jonas-paprotka.de/ref/codeunit/7787-aoai-policy-params/) `GetAOAIPolicy`
- [365](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L365) calls [Codeunit 7763 AOAI Chat Messages](https://jonas-paprotka.de/ref/codeunit/7763-aoai-chat-messages/) `AssembleHistory`
- [367](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L367) calls [Codeunit 7763 AOAI Chat Messages](https://jonas-paprotka.de/ref/codeunit/7763-aoai-chat-messages/) `ToolsExists`
- [368](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L368) calls [Codeunit 7763 AOAI Chat Messages](https://jonas-paprotka.de/ref/codeunit/7763-aoai-chat-messages/) `AssembleTools`
- [370](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L370) calls [Codeunit 7763 AOAI Chat Messages](https://jonas-paprotka.de/ref/codeunit/7763-aoai-chat-messages/) `GetToolChoice`
- [379](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L379) calls [Codeunit 8711 Telemetry](https://jonas-paprotka.de/ref/codeunit/8711-telemetry/) `LogMessage`
- [382](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L382) calls `CheckJsonModeCompatibility`
- [386](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L386) calls `SendTokenCountTelemetry`
- [387](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L387) calls `SendRequest`
- [388](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L388) calls [Codeunit 8703 Feature Telemetry](https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/) `LogError`
- [388](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L388) calls `GetAzureOpenAICategory`
- [392](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L392) calls `ProcessChatCompletionResponse`
- [394](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L394) calls [Codeunit 8703 Feature Telemetry](https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/) `LogUsage`
- [394](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L394) calls `GetAzureOpenAICategory`
- [396](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L396) calls [Codeunit 7770 AOAI Operation Response](https://jonas-paprotka.de/ref/codeunit/7770-aoai-operation-response/) `GetFunctionResponses`
- [396](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L396) calls [Codeunit 7763 AOAI Chat Messages](https://jonas-paprotka.de/ref/codeunit/7763-aoai-chat-messages/) `GetToolInvokePreference`

## ProcessChatCompletionResponse

[Line 428](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L428), local.

- [438](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L438) calls [Codeunit 7770 AOAI Operation Response](https://jonas-paprotka.de/ref/codeunit/7770-aoai-operation-response/) `GetResult`
- [441](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L441) calls [Codeunit 7763 AOAI Chat Messages](https://jonas-paprotka.de/ref/codeunit/7763-aoai-chat-messages/) `AddAssistantMessage`
- [443](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L443) calls [Codeunit 7763 AOAI Chat Messages](https://jonas-paprotka.de/ref/codeunit/7763-aoai-chat-messages/) `AddToolCalls`
- [445](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L445) calls `ProcessToolCalls`
- [446](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L446) calls [Codeunit 7758 AOAI Function Response](https://jonas-paprotka.de/ref/codeunit/7758-aoai-function-response/) `SetFunctionCallingResponse`
- [447](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L447) calls [Codeunit 7770 AOAI Operation Response](https://jonas-paprotka.de/ref/codeunit/7770-aoai-operation-response/) `AddFunctionResponse`
- [450](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L450) calls [Codeunit 7774 Copilot Capability Impl](https://jonas-paprotka.de/ref/codeunit/7774-copilot-capability-impl/) `AddTelemetryCustomDimensions`
- [451](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L451) calls [Codeunit 7770 AOAI Operation Response](https://jonas-paprotka.de/ref/codeunit/7770-aoai-operation-response/) `GetFunctionResponses`
- [452](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L452) calls [Codeunit 7758 AOAI Function Response](https://jonas-paprotka.de/ref/codeunit/7758-aoai-function-response/) `IsSuccess`
- [453](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L453) calls [Codeunit 8703 Feature Telemetry](https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/) `LogError`
- [453](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L453) calls `GetAzureOpenAICategory`
- [453](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L453) calls [Codeunit 7758 AOAI Function Response](https://jonas-paprotka.de/ref/codeunit/7758-aoai-function-response/) `GetFunctionName`
- [453](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L453) calls [Codeunit 7758 AOAI Function Response](https://jonas-paprotka.de/ref/codeunit/7758-aoai-function-response/) `GetError`
- [453](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L453) calls [Codeunit 7758 AOAI Function Response](https://jonas-paprotka.de/ref/codeunit/7758-aoai-function-response/) `GetErrorCallstack`
- [455](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L455) calls [Codeunit 7763 AOAI Chat Messages](https://jonas-paprotka.de/ref/codeunit/7763-aoai-chat-messages/) `GetToolInvokePreference`
- [456](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L456) calls [Codeunit 7770 AOAI Operation Response](https://jonas-paprotka.de/ref/codeunit/7770-aoai-operation-response/) `AppendFunctionResponsesToChatMessages`
- [458](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L458) calls [Codeunit 8711 Telemetry](https://jonas-paprotka.de/ref/codeunit/8711-telemetry/) `LogMessage`

## ProcessToolCalls

[Line 462](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L462), local.

- [476](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L476) calls `ProcessFunctionCall`

## ProcessFunctionCall

[Line 483](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L483), local.

- [512](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L512) calls [Codeunit 7763 AOAI Chat Messages](https://jonas-paprotka.de/ref/codeunit/7763-aoai-chat-messages/) `GetFunctionTool`
- [513](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L513) calls [Codeunit 7763 AOAI Chat Messages](https://jonas-paprotka.de/ref/codeunit/7763-aoai-chat-messages/) `GetToolInvokePreference`
- [514](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L514) calls `TryExecuteFunction`
- [515](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L515) calls [Codeunit 7758 AOAI Function Response](https://jonas-paprotka.de/ref/codeunit/7758-aoai-function-response/) `SetFunctionCallingResponse`
- [516](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L516) calls [Codeunit 7770 AOAI Operation Response](https://jonas-paprotka.de/ref/codeunit/7770-aoai-operation-response/) `AddFunctionResponse`
- [519](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L519) calls [Codeunit 7758 AOAI Function Response](https://jonas-paprotka.de/ref/codeunit/7758-aoai-function-response/) `SetFunctionCallingResponse`
- [520](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L520) calls [Codeunit 7770 AOAI Operation Response](https://jonas-paprotka.de/ref/codeunit/7770-aoai-operation-response/) `AddFunctionResponse`
- [524](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L524) calls [Codeunit 7758 AOAI Function Response](https://jonas-paprotka.de/ref/codeunit/7758-aoai-function-response/) `SetFunctionCallingResponse`
- [525](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L525) calls [Codeunit 7770 AOAI Operation Response](https://jonas-paprotka.de/ref/codeunit/7770-aoai-operation-response/) `AddFunctionResponse`
- [529](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L529) calls [Codeunit 7758 AOAI Function Response](https://jonas-paprotka.de/ref/codeunit/7758-aoai-function-response/) `SetFunctionCallingResponse`
- [530](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L530) calls [Codeunit 7770 AOAI Operation Response](https://jonas-paprotka.de/ref/codeunit/7770-aoai-operation-response/) `AddFunctionResponse`

## SendRequest

[Line 543](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L543), local.

- [555](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L555) calls `IsBillingTypeAuthorized`
- [556](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L556) calls [Codeunit 7774 Copilot Capability Impl](https://jonas-paprotka.de/ref/codeunit/7774-copilot-capability-impl/) `GetCapabilityName`
- [556](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L556) calls [Codeunit 7774 Copilot Capability Impl](https://jonas-paprotka.de/ref/codeunit/7774-copilot-capability-impl/) `GetCopilotBillingType`
- [557](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L557) calls [Codeunit 7770 AOAI Operation Response](https://jonas-paprotka.de/ref/codeunit/7770-aoai-operation-response/) `SetOperationResponse`
- [561](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L561) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `GetResourceUtilization`
- [563](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L563) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `GetManagedResourceDeployment`
- [565](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L565) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `GetManagedResourceDeployment`
- [567](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L567) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `GetEndpoint`
- [567](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L567) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `GetDeployment`
- [567](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L567) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `GetApiKey`
- [570](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L570) calls [Codeunit 7774 Copilot Capability Impl](https://jonas-paprotka.de/ref/codeunit/7774-copilot-capability-impl/) `GetCapabilityName`
- [580](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L580) calls [Codeunit 7770 AOAI Operation Response](https://jonas-paprotka.de/ref/codeunit/7770-aoai-operation-response/) `SetOperationResponse`
- [587](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L587) calls [Codeunit 7770 AOAI Operation Response](https://jonas-paprotka.de/ref/codeunit/7770-aoai-operation-response/) `SetOperationResponse`
- [589](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L589) calls [Codeunit 7770 AOAI Operation Response](https://jonas-paprotka.de/ref/codeunit/7770-aoai-operation-response/) `GetStatusCode`
- [590](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L590) calls [Codeunit 7757 Copilot Notifications](https://jonas-paprotka.de/ref/codeunit/7757-copilot-notifications/) `CheckAIQuotaAndShowNotification`

## SendTokenCountTelemetry

[Line 596](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L596), local.

- [598](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L598) calls [Codeunit 8711 Telemetry](https://jonas-paprotka.de/ref/codeunit/8711-telemetry/) `LogMessage`

## GuiCheck

[Line 601](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L601), local.

- [605](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L605) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `GetResourceUtilization`
- [608](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L608) calls [Codeunit 4030 Client Type Management](https://jonas-paprotka.de/ref/codeunit/4030-client-type-management/) `GetCurrentClientType`
- [611](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L611) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `GetResourceUtilization`

## CheckAuthorizationEnabled

[Line 615](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L615), local.

- [617](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L617) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `IsConfigured`

## RemoveProhibitedCharacters

[Line 622](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L622).

- [630](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L630) calls [Codeunit 8711 Telemetry](https://jonas-paprotka.de/ref/codeunit/8711-telemetry/) `LogMessage`

## GetTextMetaprompt

[Line 637](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L637), internal.

- [644](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L644) calls [Codeunit 457 Environment Information](https://jonas-paprotka.de/ref/codeunit/457-environment-information/) `IsSaaSInfrastructure`
- [647](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L647) calls [Codeunit 2200 Azure Key Vault](https://jonas-paprotka.de/ref/codeunit/2200-azure-key-vault/) `GetAzureKeyVaultSecret`
- [648](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L648) calls [Codeunit 8711 Telemetry](https://jonas-paprotka.de/ref/codeunit/8711-telemetry/) `LogMessage`

## CheckTextCompletionMetaprompt

[Line 657](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L657), local.

- [662](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L662) calls [Codeunit 8703 Feature Telemetry](https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/) `LogError`
- [662](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L662) calls `GetAzureOpenAICategory`

## CreatePrivacyNoticeRegistrations

[Line 699](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L699), local.

- [702](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L702) calls `GetAzureOpenAICategory`
- [703](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L703) calls `GetServiceName`
- [704](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L704) writes [Table 2000000237 Privacy Notice](https://jonas-paprotka.de/ref/table/2000000237-privacy-notice/) Insert

## IsBillingTypeAuthorized

[Line 707](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L707).

- [711](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L711) calls [Codeunit 7774 Copilot Capability Impl](https://jonas-paprotka.de/ref/codeunit/7774-copilot-capability-impl/) `GetCopilotBillingType`
- [712](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L712) calls [Codeunit 7774 Copilot Capability Impl](https://jonas-paprotka.de/ref/codeunit/7774-copilot-capability-impl/) `IsPublisherMicrosoft`
- [713](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L713) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `GetResourceUtilization`
- [718](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L718) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `GetResourceUtilization`
- [720](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L720) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `GetResourceUtilization`
- [724](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L724) calls [Codeunit 7774 Copilot Capability Impl](https://jonas-paprotka.de/ref/codeunit/7774-copilot-capability-impl/) `IsProductionEnvironment`
- [732](https://jonas-paprotka.de/ref/codeunit/7772-azure-openai-impl/source/#L732) calls [Codeunit 7767 AOAI Authorization](https://jonas-paprotka.de/ref/codeunit/7767-aoai-authorization/) `GetResourceUtilization`

## Source

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

JOP-AL, 2026-11-20.
