---
id: change/bcapps/10185
type: change
title: "#10185 Fix Reduce Contacts report silently ignores contacts whose company no…"
summary: The Remove Contacts report now correctly handles contacts whose company reference doesn't match their actual company, filtering by contact number for single contacts and by company number only for entire companies.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - report remove contacts
system: crm
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:09:12.655Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 626a9d1f017ef64f6dbd0091d47bda521e2deb61
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10185
    title: "microsoft/BCApps#10185: Fix Reduce Contacts report silently ignores contacts whose company no…"
    date: "2026-08-13"
    commit: 626a9d1f017ef64f6dbd0091d47bda521e2deb61
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/report/5186
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10185
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10185
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-13T09:44:00Z"
author: VolodySyn
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 1
  additions: 3
  deletions: 2
  al: 1
apps:
  - Base Application
objects_touched:
  - key: report/5186
    page: report/5186
    type: report
    id: 5186
    name: Remove Contacts
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 640984
systems:
  - crm
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #10185 Fix Reduce Contacts report silently ignores contacts whose company no…

> The Remove Contacts report now correctly handles contacts whose company reference doesn't match their actual company, filtering by contact number for single contacts and by company number only for entire companies.

[Pull request](https://github.com/microsoft/BCApps/pull/10185) · merged into `main` (BC30) on 2026-08-13 by VolodySyn · 1 file (+3 -2), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Fixed silent skipping of contacts when segment line company number didn't match contact's actual company
- Report now filters by unique contact 'No.' for individual contacts
- Report filters by 'Company No.' only when processing entire companies
- Resolves issue where matching logic incorrectly combined two filter conditions
- Behaviour changes for users or extensions.

## AL objects touched

- [Report 5186 "Remove Contacts"](../../objects/report/5186.md), Base Application: modified

## Context

- Work items: AB#640984
- Labels: Team: SCM
- Systems: crm

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