---
id: change/bcapps/10090
type: change
title: "#10090 [Bank Acc. Reconciliation with Copilot] Read the functional part of the prompt from .resources and safety clause from Key Vault"
summary: Bank account reconciliation with Copilot now loads the functional part of AI prompts from resource files and retrieves only the safety clause from Key Vault, improving separation of concerns.
tier: official
language: en
tags:
  - refactor
  - main
  - bc30
  - codeunit bank acc. rec. trans. to acc.
  - codeunit bank rec. ai matching impl.
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:09:41.397Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 771a1ddfb6be63c69a43466028d1d894b5c42042
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10090
    title: "microsoft/BCApps#10090: [Bank Acc. Reconciliation with Copilot] Read the functional part of the prompt from .resources and safety clause from Key Vault"
    date: "2026-08-11"
    commit: 771a1ddfb6be63c69a43466028d1d894b5c42042
    t: null
    quote: Read the functional part of the prompt from .resources and safety clause from Key Vault
links:
  learn: []
  objects:
    - object/codeunit/7251
    - object/codeunit/7250
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10090
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10090
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-11T09:56:43Z"
author: dcenic
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Finance"
change_class: code
change_kind: refactor
behavior_change: false
breaking: false
files:
  count: 5
  additions: 78
  deletions: 17
  al: 2
apps:
  - BankAccRecWithAI
objects_touched:
  - key: codeunit/7251
    page: codeunit/7251
    type: codeunit
    id: 7251
    name: Bank Acc. Rec. Trans. to Acc.
    app: BankAccRecWithAI
    status: modified
  - key: codeunit/7250
    page: codeunit/7250
    type: codeunit
    id: 7250
    name: Bank Rec. AI Matching Impl.
    app: BankAccRecWithAI
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 636129
systems:
  - finance
quote: Read the functional part of the prompt from .resources and safety clause from Key Vault
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #10090 [Bank Acc. Reconciliation with Copilot] Read the functional part of the prompt from .resources and safety clause from Key Vault

> Bank account reconciliation with Copilot now loads the functional part of AI prompts from resource files and retrieves only the safety clause from Key Vault, improving separation of concerns.

[Pull request](https://github.com/microsoft/BCApps/pull/10090) · merged into `main` (BC30) on 2026-08-11 by dcenic · 5 files (+78 -17), 2 AL · refactor · tier official · reviewed (checked by Opus)

## What changed

- Functional prompt content moved to .resources files for maintainability
- Safety clauses remain in Key Vault for security governance
- Two new resource files added for matching task and GL account task prompts
- Prompt construction logic refactored to read from multiple sources
- No behavior change from user perspective; internal prompt management reorganized

## AL objects touched

- [Codeunit 7251 "Bank Acc. Rec. Trans. to Acc."](../../objects/codeunit/7251.md), BankAccRecWithAI: modified
- [Codeunit 7250 "Bank Rec. AI Matching Impl."](../../objects/codeunit/7250.md), BankAccRecWithAI: modified

## Context

- Work items: AB#636129
- Labels: AL: Apps (W1), Team: Finance
- Systems: finance
- From the description: "Read the functional part of the prompt from .resources and safety clause from Key Vault"

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