---
id: change/bcapps/14327
type: change
title: "#14327 Expose Payables Agent infotip sources through test fixtures"
summary: Test fixtures for the Payables Agent now expose infotip sources and business context, allowing offline evaluations to collect explanations without directly depending on E-Document apps. The change provides source descriptors through internal test APIs only.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit pa draft based test fixtures
  - codeunit pa test fixtures
system: copilot
review:
  state: reviewed
  by: opus
  at: "2026-11-24T01:03:39.668Z"
  flags: []
generated:
  at: "2026-12-01T00:17:57.990Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 10b8fa8620243ed12f28f25869987c65de7c39e0
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14327
    title: "microsoft/BCApps#14327: Expose Payables Agent infotip sources through test fixtures"
    date: "2026-11-23"
    commit: 10b8fa8620243ed12f28f25869987c65de7c39e0
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/3347
    - object/codeunit/3326
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/ai-test-copilot-agent-tests
      title: Write agent tests
      label: possibly related
      why: Describes writing agent tests with test fixtures to verify agent behavior and interactions.
      by: model
number: 14327
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14327
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-23T13:16:17Z"
author: Jose-agg
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Finance"
change_class: code
change_kind: feature
behavior_change: false
breaking: false
files:
  count: 3
  additions: 553
  deletions: 0
  al: 2
apps:
  - PayablesAgent
objects_touched:
  - key: codeunit/3347
    page: codeunit/3347
    type: codeunit
    id: 3347
    name: PA Draft Based Test Fixtures
    app: PayablesAgent
    status: modified
  - key: codeunit/3326
    page: codeunit/3326
    type: codeunit
    id: 3326
    name: PA Test Fixtures
    app: PayablesAgent
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 618671
systems:
  - copilot
quote: null
joined_against:
  major: "30"
  commit: 4d60d10920084a35a6231e5a0ffbd0577b0c399e
---

# #14327 Expose Payables Agent infotip sources through test fixtures

> Test fixtures for the Payables Agent now expose infotip sources and business context, allowing offline evaluations to collect explanations without directly depending on E-Document apps. The change provides source descriptors through internal test APIs only.

[Pull request](https://github.com/microsoft/BCApps/pull/14327) · merged into `main` (BC30) on 2026-11-23 by Jose-agg · 3 files (+553 -0), 2 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- Expose version-neutral source records and business context through PA Test Fixtures for infotip collection
- Keep V1 discovery in draft-based compatibility code and support native purchase-document outcomes for V2
- Fixtures return only internal source descriptors (table ID, system ID, description); querying and formatting stay in the evaluation harness
- Internal TestSupport API only; no production, schema or public API changes
- New tests cover positive and negative source-discovery cases

## AL objects touched

- [Codeunit 3347 "PA Draft Based Test Fixtures"](../../objects/codeunit/3347.md), PayablesAgent: modified
- [Codeunit 3326 "PA Test Fixtures"](../../objects/codeunit/3326.md), PayablesAgent: modified

## Context

- Work items: AB#618671
- Labels: AL: Apps (W1), Team: Finance
- Systems: copilot

## Possibly related

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

- [Write agent tests](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/ai-test-copilot-agent-tests) — possibly related: Describes writing agent tests with test fixtures to verify agent behavior and interactions. (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).
