---
id: change/bcapps/13507
type: change
title: "#13507 [E-Document] Add AKV switch for PA-related LLM calls"
summary: E-Document AI processing now supports switching between LLM models for PA-related calls via Azure Key Vault configuration, preparing for a future model migration.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit e-doc. ai tool processor
  - codeunit e-document mllm handler
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-11-08T00:58:59.369Z"
  flags: []
generated:
  at: "2026-11-09T00:15:52.409Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 3fb78674e197f2bdec46114d1270da4b595705d2
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13507
    title: "microsoft/BCApps#13507: [E-Document] Add AKV switch for PA-related LLM calls"
    date: "2026-11-06"
    commit: 3fb78674e197f2bdec46114d1270da4b595705d2
    t: null
    quote: Adding a mechanism to switch the model being called for PA-related E-Document-owned LLM calls to prepare for the upcoming migration.
links:
  learn: []
  objects:
    - object/codeunit/6195
    - object/codeunit/6231
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/administration/telemetry-mcp-server-trace
      title: Analyze MCP Server Tool Calls Telemetry
      label: possibly related
      why: Documents LLM tool calls and telemetry tracking relevant to E-Document AI Tool Processor changes.
      by: model
number: 13507
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13507
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-06T11:05:22Z"
author: mynjj
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Integrations"
change_class: code
change_kind: feature
behavior_change: true
breaking: false
files:
  count: 4
  additions: 40
  deletions: 9
  al: 2
apps:
  - EDocument
objects_touched:
  - key: codeunit/6195
    page: codeunit/6195
    type: codeunit
    id: 6195
    name: E-Doc. AI Tool Processor
    app: EDocument
    status: modified
  - key: codeunit/6231
    page: codeunit/6231
    type: codeunit
    id: 6231
    name: E-Document MLLM Handler
    app: EDocument
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 657607
systems:
  - integration
quote: Adding a mechanism to switch the model being called for PA-related E-Document-owned LLM calls to prepare for the upcoming migration.
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #13507 [E-Document] Add AKV switch for PA-related LLM calls

> E-Document AI processing now supports switching between LLM models for PA-related calls via Azure Key Vault configuration, preparing for a future model migration.

[Pull request](https://github.com/microsoft/BCApps/pull/13507) · merged into `main` (BC30) on 2026-11-06 by mynjj · 4 files (+40 -9), 2 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- Adds an AKV-based switch that selects the model for PA-related E-Document LLM calls
- Touches the E-Doc. AI Tool Processor and E-Document MLLM Handler codeunits
- Prepares for an upcoming model migration
- Processing docs updated to match
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 6195 "E-Doc. AI Tool Processor"](../../objects/codeunit/6195.md), EDocument: modified
- [Codeunit 6231 "E-Document MLLM Handler"](../../objects/codeunit/6231.md), EDocument: modified

## Context

- Work items: AB#657607
- Labels: AL: Apps (W1), Team: Integrations
- Systems: integration
- From the description: "Adding a mechanism to switch the model being called for PA-related E-Document-owned LLM calls to prepare for the upcoming migration."

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Analyze MCP Server Tool Calls Telemetry](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/administration/telemetry-mcp-server-trace) — possibly related: Documents LLM tool calls and telemetry tracking relevant to E-Document AI Tool Processor changes. (model-linked)

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
