---
id: change/bcapps/9969
type: change
title: "#9969 Add AL fast prompt interface and wrappers"
summary: A new GetFastPrompt interface and AOAI Fast Prompt Response codeunit enable AL code to fetch blob-backed prompt templates from Edge Configuration Service with typed response handling.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit azure openai
  - codeunit azure openai impl
  - codeunit aoai fast prompt response
system: copilot
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:08:12.756Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 7afb17ae48e4c22013187aa7fd95758e14fbb38b
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9969
    title: "microsoft/BCApps#9969: Add AL fast prompt interface and wrappers"
    date: "2026-08-20"
    commit: 7afb17ae48e4c22013187aa7fd95758e14fbb38b
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/7771
    - object/codeunit/7772
    - object/codeunit/7789
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9969
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9969
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-20T09:03:01Z"
author: Naveen26423
author_type: User
community_contribution: false
labels:
  - "AL: System Application"
  - "Team: Integrations"
change_class: code
change_kind: feature
behavior_change: true
breaking: false
files:
  count: 6
  additions: 231
  deletions: 1
  al: 4
apps:
  - System Application
objects_touched:
  - key: codeunit/7771
    page: codeunit/7771
    type: codeunit
    id: 7771
    name: Azure OpenAI
    app: System Application
    status: modified
  - key: codeunit/7772
    page: codeunit/7772
    type: codeunit
    id: 7772
    name: Azure OpenAI Impl
    app: System Application
    status: modified
  - key: codeunit/7789
    page: codeunit/7789
    type: codeunit
    id: 7789
    name: AOAI Fast Prompt Response
    app: System Application
    status: added
objects_unjoined:
  - path: src/System Application/App/DotNet Aliases/src/dotnet.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 641501
systems:
  - copilot
quote: null
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #9969 Add AL fast prompt interface and wrappers

> A new GetFastPrompt interface and AOAI Fast Prompt Response codeunit enable AL code to fetch blob-backed prompt templates from Edge Configuration Service with typed response handling.

[Pull request](https://github.com/microsoft/BCApps/pull/9969) · merged into `main` (BC30) on 2026-08-20 by Naveen26423 · 6 files (+231 -1), 4 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- New GetFastPrompt public procedure on Azure OpenAI codeunit for retrieving ECS-stored prompt templates
- New AOAI Fast Prompt Response codeunit (7789) provides typed response object with template, error code, and error message
- Integrates with DotNet ALCopilotFunctions layer to resolve fast prompts from ECS
- Supports error handling for invalid keys and unsupported authorization scenarios
- AI module object ID range expanded from 7788 to 7789
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 7771 "Azure OpenAI"](../../objects/codeunit/7771.md), System Application: modified
- [Codeunit 7772 "Azure OpenAI Impl"](../../objects/codeunit/7772.md), System Application: modified
- [Codeunit 7789 "AOAI Fast Prompt Response"](../../objects/codeunit/7789.md), System Application: added
- `src/System Application/App/DotNet Aliases/src/dotnet.al`: modified, not in the BC30 snapshot

## Context

- Work items: AB#641501
- Labels: AL: System Application, Team: Integrations
- Systems: copilot

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).
