---
id: change/bcapps/11068
type: change
title: "#11068 SOA: Clear previous search filter"
summary: The item search function now clears stale filters before processing a new search, preventing previous results from affecting subsequent searches.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit soa item search
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:06:08.033Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 3d4519070fae4b47093e3a191c9bf6fe51f1f417
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11068
    title: "microsoft/BCApps#11068: SOA: Clear previous search filter"
    date: "2026-09-04"
    commit: 3d4519070fae4b47093e3a191c9bf6fe51f1f417
    t: null
    quote: Clears the stale SystemId filter before processing a new item search.
links:
  learn: []
  objects:
    - object/codeunit/4591
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 11068
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11068
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-04T23:08:06Z"
author: VolodySyn
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 1
  additions: 1
  deletions: 0
  al: 1
apps:
  - SalesOrderAgent
objects_touched:
  - key: codeunit/4591
    page: codeunit/4591
    type: codeunit
    id: 4591
    name: SOA Item Search
    app: SalesOrderAgent
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 11072
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/11072
fixes_issues: []
work_items:
  - 649165
systems:
  - development
quote: Clears the stale SystemId filter before processing a new item search.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #11068 SOA: Clear previous search filter

> The item search function now clears stale filters before processing a new search, preventing previous results from affecting subsequent searches.

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

## What changed

- Removes SystemId filter before each new item search
- Prevents previous search results from restricting new searches
- Ensures empty searches correctly reset the search state
- Fixes search behavior in Sales Order Agent
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 4591 "SOA Item Search"](../../objects/codeunit/4591.md), SalesOrderAgent: modified

## Also merged into

- [#11072](https://github.com/microsoft/BCApps/pull/11072) into `releases/29.x` on 2026-09-04

## Context

- Work items: AB#649165
- Labels: AL: Apps (W1), Team: SCM
- Systems: development
- From the description: "Clears the stale SystemId filter before processing a new item search."

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