---
id: change/bcapps/9374
type: change
title: "#9374 [master] Contact No. Lookup on Sales Quote returns All Customers instead of related Contacts after Updating to v28.2 - regression."
summary: Fixed a regression in the Contact No. lookup on Sales Quotes that was showing all contacts instead of filtering to only the related customer's contacts.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - table sales header
system: sales
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:12:34.610Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: b5e2e473f2fa9a459b023125547e64b482ddb154
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9374
    title: "microsoft/BCApps#9374: [master] Contact No. Lookup on Sales Quote returns All Customers instead of related Contacts after Updating to v28.2 - regression."
    date: "2026-07-15"
    commit: b5e2e473f2fa9a459b023125547e64b482ddb154
    t: null
    quote: Contact No. Lookup on Sales Quote returns All Customers instead of related Contacts after Updating to v28.2
links:
  learn: []
  objects:
    - object/table/36
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9374
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9374
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-15T14:20:44Z"
author: neeleshsinghal
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 16
  additions: 44
  deletions: 15
  al: 15
apps:
  - Base Application
objects_touched:
  - key: table/36
    page: table/36
    type: table
    id: 36
    name: Sales Header
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/CZ/BaseApp/Sales/Document/SalesHeader.Table.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/FI/BaseApp/Sales/Document/SalesHeader.Table.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/GB/BaseApp/Sales/Document/SalesHeader.Table.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 642199
systems:
  - sales
quote: Contact No. Lookup on Sales Quote returns All Customers instead of related Contacts after Updating to v28.2
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #9374 [master] Contact No. Lookup on Sales Quote returns All Customers instead of related Contacts after Updating to v28.2 - regression.

> Fixed a regression in the Contact No. lookup on Sales Quotes that was showing all contacts instead of filtering to only the related customer's contacts.

[Pull request](https://github.com/microsoft/BCApps/pull/9374) · merged into `main` (BC30) on 2026-07-15 by neeleshsinghal · 16 files (+44 -15), 15 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Contact lookup on Sales Quote documents now correctly filters to show only contacts related to the selected customer
- The issue was caused by a condition that excluded Quote document type from contact filtering logic
- The fix removes the Quote exclusion while preserving the prospect flow for quotes without a customer
- Same fix applied across all localization layers to ensure consistent behavior
- Test coverage added to prevent future regressions
- Behaviour changes for users or extensions.

## AL objects touched

- [Table 36 "Sales Header"](../../objects/table/36.md), Base Application: modified
- `src/Layers/CZ/BaseApp/Sales/Document/SalesHeader.Table.al`: modified, not in the BC30 snapshot
- `src/Layers/FI/BaseApp/Sales/Document/SalesHeader.Table.al`: modified, not in the BC30 snapshot
- `src/Layers/GB/BaseApp/Sales/Document/SalesHeader.Table.al`: modified, not in the BC30 snapshot

## Context

- Work items: AB#642199
- Labels: Team: SCM
- Systems: sales
- From the description: "Contact No. Lookup on Sales Quote returns All Customers instead of related Contacts after Updating to v28.2"

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