---
id: change/bcapps/10431
type: change
title: "#10431 [Agent Archiving] Fix broken reference links to archived agents and their tasks"
summary: Reference links to archived agents and their tasks now open the Agent Card and Agent Task Log Entries respectively instead of failing or showing unrelated agents, while non-archived agents follow the same navigation paths as before.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - page inbound e-documents
  - pageextension pa purchase invoice list
  - codeunit agent task impl.
  - page agent task list
  - codeunit agent impl.
  - page agent task context part
system: copilot
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:07:46.868Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 8aa66bb8038c53dc707b5ce1056902798a1da14e
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10431
    title: "microsoft/BCApps#10431: [Agent Archiving] Fix broken reference links to archived agents and their tasks"
    date: "2026-08-24"
    commit: 8aa66bb8038c53dc707b5ce1056902798a1da14e
    t: null
    quote: Reference links to an archived agent or to an archived agent's task are broken.
links:
  learn: []
  objects:
    - object/page/6105
    - object/pageextension/3309
    - object/codeunit/4300
    - object/page/4300
    - object/codeunit/4301
    - object/page/4343
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10431
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10431
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-24T17:12:11Z"
author: krupybalu
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "AL: System Application"
  - "Ownership: Needs Review"
  - "Team: Other"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 7
  additions: 131
  deletions: 14
  al: 6
apps:
  - EDocument
  - PayablesAgent
  - System Application
objects_touched:
  - key: page/6105
    page: page/6105
    type: page
    id: 6105
    name: Inbound E-Documents
    app: EDocument
    status: modified
  - key: pageextension/3309
    page: pageextension/3309
    type: pageextension
    id: 3309
    name: PA Purchase Invoice List
    app: PayablesAgent
    status: modified
  - key: codeunit/4300
    page: codeunit/4300
    type: codeunit
    id: 4300
    name: Agent Task Impl.
    app: System Application
    status: modified
  - key: page/4300
    page: page/4300
    type: page
    id: 4300
    name: Agent Task List
    app: System Application
    status: modified
  - key: codeunit/4301
    page: codeunit/4301
    type: codeunit
    id: 4301
    name: Agent Impl.
    app: System Application
    status: modified
  - key: page/4343
    page: page/4343
    type: page
    id: 4343
    name: Agent Task Context Part
    app: System Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 620767
systems:
  - copilot
  - development
  - integration
quote: Reference links to an archived agent or to an archived agent's task are broken.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #10431 [Agent Archiving] Fix broken reference links to archived agents and their tasks

> Reference links to archived agents and their tasks now open the Agent Card and Agent Task Log Entries respectively instead of failing or showing unrelated agents, while non-archived agents follow the same navigation paths as before.

[Pull request](https://github.com/microsoft/BCApps/pull/10431) · merged into `main` (BC30) on 2026-08-24 by krupybalu · 7 files (+131 -14), 6 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Links to an archived agent now open the Agent Card, and links to an archived agent's task open the Agent Task Log Entries
- Fixes links that reported not found or opened an unrelated agent's task list
- Internal helpers Agent Impl.ShowAgent and Agent Task Impl.ShowTask choose the target page from the agent substate
- Inbound E-Documents and PA Purchase Invoice List inline the same check using API that already ships; no new public API
- Non-archived agents still open the task pane as before; tests added for the archived routing
- Behaviour changes for users or extensions.

## AL objects touched

- [Page 6105 "Inbound E-Documents"](../../objects/page/6105.md), EDocument: modified
- [Page extension 3309 "PA Purchase Invoice List"](../../objects/pageextension/3309.md), PayablesAgent: modified
- [Codeunit 4300 "Agent Task Impl."](../../objects/codeunit/4300.md), System Application: modified
- [Page 4300 "Agent Task List"](../../objects/page/4300.md), System Application: modified
- [Codeunit 4301 "Agent Impl."](../../objects/codeunit/4301.md), System Application: modified
- [Page 4343 "Agent Task Context Part"](../../objects/page/4343.md), System Application: modified

## Context

- Work items: AB#620767
- Labels: AL: Apps (W1), AL: System Application, Ownership: Needs Review, Team: Other
- Systems: copilot, development, integration
- From the description: "Reference links to an archived agent or to an archived agent's task are broken."

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