---
id: change/bcapps/9181
type: change
title: "#9181 Filter the source record before FindFirst in Prices Overview caption"
summary: The Prices Overview page now correctly displays captions by filtering records before lookup instead of performing an unfiltered search that returned unrelated first records.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - page prices overview
system: development
review:
  state: reviewed
  by: opus
  at: "2026-11-04T00:59:06.386Z"
  flags: []
generated:
  at: "2026-11-06T00:17:27.413Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 953bc159cad65b9ed79a7910cc6ed2494a28affa
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9181
    title: "microsoft/BCApps#9181: Filter the source record before FindFirst in Prices Overview caption"
    date: "2026-11-03"
    commit: 953bc159cad65b9ed79a7910cc6ed2494a28affa
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/page/7024
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/sales-how-record-sales-price-discount-payment-agreements
      title: Record special sales prices and discounts
      label: possibly related
      why: touches Page 7024 "Prices Overview"
      by: code
    - to: https://learn.microsoft.com/dynamics365/business-central/purchasing-how-record-purchase-price-discount-payment-agreements
      title: Record special purchase prices and discounts
      label: possibly related
      why: Documents recording and managing special purchase prices with filtering and overview capabilities.
      by: model
number: 9181
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9181
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-03T12:45:45Z"
author: Franco111000
author_type: User
community_contribution: true
labels:
  - "ADO: Sync"
  - From Fork
  - "Team: SCM"
  - needs-approval
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 3
  additions: 126
  deletions: 6
  al: 2
apps:
  - Base Application
objects_touched:
  - key: page/7024
    page: page/7024
    type: page
    id: 7024
    name: Prices Overview
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/APAC/BaseApp/Pricing/PriceList/PricesOverview.Page.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues:
  - 9101
work_items:
  - 648173
systems:
  - development
quote: null
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #9181 Filter the source record before FindFirst in Prices Overview caption

> The Prices Overview page now correctly displays captions by filtering records before lookup instead of performing an unfiltered search that returned unrelated first records.

[Pull request](https://github.com/microsoft/BCApps/pull/9181) · merged into `main` (BC30) on 2026-11-03 by Franco111000 (community contribution) · 3 files (+126 -6), 2 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- GetFilterDescription() now applies SetFilter on the key field before FindFirst instead of just assigning the number
- Fix covers the Customer, Customer Price Group, and Campaign branches
- W1 page and its APAC layer copy were updated identically
- Three regression tests check that the caption shows the selected record's name
- Caption-only change with no schema, permission, or signature changes
- Behaviour changes for users or extensions.

## AL objects touched

- [Page 7024 "Prices Overview"](../../objects/page/7024.md), Base Application: modified
- `src/Layers/APAC/BaseApp/Pricing/PriceList/PricesOverview.Page.al`: modified, not in the BC30 snapshot

## Context

- Fixes: [#9101 [Bug]: Prices Overview data caption shows the first record's name instead of the filtered record](https://github.com/microsoft/BCApps/issues/9101) (closed)
- Work items: AB#648173
- Labels: ADO: Sync, From Fork, Team: SCM, needs-approval
- Systems: development

## Possibly related

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

- [Record special sales prices and discounts](https://learn.microsoft.com/dynamics365/business-central/sales-how-record-sales-price-discount-payment-agreements) — possibly related: touches Page 7024 "Prices Overview"
- [Record special purchase prices and discounts](https://learn.microsoft.com/dynamics365/business-central/purchasing-how-record-purchase-price-discount-payment-agreements) — possibly related: Documents recording and managing special purchase prices with filtering and overview capabilities. (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).
