---
title: "Codeunit 4395 Global Item Search"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/4395-global-item-search/
type: codeunit
id: 4395
name: "Global Item Search"
app: "Sales Order Agent"
namespace: Microsoft.Agent.SalesOrderAgent
versions: "26-29"
build: 29.0.54011.55644
countries: "W1, DE, US"
source: "https://jonas-paprotka.de/ref/codeunit/4395-global-item-search/source/"
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 4395 Global Item Search

JOP-AL, https://jonas-paprotka.de/ref/codeunit/4395-global-item-search/

| | |
| --- | --- |
| App | Sales Order Agent |
| Namespace | Microsoft.Agent.SalesOrderAgent |
| Versions | 26-29 |
| Minors | W1 26.3-29.0; DE 26.4-29.0; US 26.3-29.0, [every minor](https://jonas-paprotka.de/ref/codeunit/4395-global-item-search/editions.json) |
| Access | Internal |
| Source file | src/ItemSearch/GlobalItemSearch.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| InitializeSearchOptionsObject | (IncludeSynonyms: Boolean; UseContextAwareRanking: Boolean) | - | internal | 26-29 | - | - |
| AddSearchFilter | (FieldNo: Integer; Expression: Text) | - | internal | 26-29 | - | - |
| AddSearchRankingContext | (SearchQuery: Text; Intent: Text; MaximumQueryResultsToRank: Integer) | - | internal | 26-29 | - | - |
| SetupSOACapabilityInformation | () | - | internal | 26-29 | - | - |
| SetupCapabilityInformation | (CurrentModuleInfo: ModuleInfo; CopilotCapabilityAsInteger: Integer) | - | internal | 26-29 | - | - |
| SetupSearchQuery | (SearchQueryText: Text; SearchPrimaryKeyWords: List of [Text]; SearchOptionalKeyWords: List of [Text]; PreciseSearch: Boolean; SearchTopResults: Integer) | - | internal | 26-29 | - | - |
| SearchAndReturnResultAsTxt | (SearchPrimaryKeyWord: Text; MinContextAwareRankingScore: Decimal; Delimiter: Text) | Text | internal | 26-29 | - | - |
| CheckIsItemSearchReady | (ErrorOnFalse: Boolean) | Boolean | internal | 26-29 | - | - |
| IsItemSearchReady | () | Boolean | internal | 26-29 | - | - |
| EnableItemSearch | () | - | internal | 26-29 | - | - |
| SearchAndReturnResultsWithColumnValues | (SearchPrimaryKeyWord: Text; MinContextAwareRankingScore: Decimal; var CandidateArray: JsonArray) | Boolean | internal | 28-29 | - | - |

## Source

Symbols: Microsoft.SalesOrderAgent.symbols.23b1772f-b8b8-4e87-9339-9ff7cbb2364b, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-11-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
