---
id: object/codeunit/7275
type: object
title: Codeunit 7275 "Sales Lines Suggestions Impl."
summary: Codeunit 7275 "Sales Lines Suggestions Impl." in SalesLinesSuggestions (Microsoft.Sales.Document). 12 public procedures, 1 event subscribers. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - saleslinessuggestions
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: f304cf969433e26e8d3b897e703cf1dc10744a41b7622d73fe9d47f7fd4613d3
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/SalesLinesSuggestions/app/SalesLinesSuggestionsImpl.Codeunit.al
    title: src/Apps/W1/SalesLinesSuggestions/app/SalesLinesSuggestionsImpl.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 7275
name: Sales Lines Suggestions Impl.
namespace: Microsoft.Sales.Document
app: SalesLinesSuggestions
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 15
  events: 0
  subscribers: 1
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 13
  called_by: 10
  implements: 0
---

# Codeunit 7275 "Sales Lines Suggestions Impl."

> Codeunit 7275 "Sales Lines Suggestions Impl." in SalesLinesSuggestions (Microsoft.Sales.Document). 12 public procedures, 1 event subscribers. Introduced in BC29, still in BC30.

SalesLinesSuggestions · Microsoft.Sales.Document · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/SalesLinesSuggestions/app/SalesLinesSuggestionsImpl.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Internal |

## Event subscriptions

- OnRegisterCopilotCapability subscribes to Page "Copilot AI Capabilities" OnRegisterCopilotCapability

## Procedures

- `GetFeatureName(): Text` (internal)
- `GetChatCompletionResponseErr(): Text` (internal)
- `GetNoSalesLinesSuggestionsMsg(): Text` (internal)
- `GetUnknownDocTypeMsg(): Text` (internal)
- `GetDocumentNotFoundMsg(): Text` (internal)
- `GetItemNotFoundMsg(): Text` (internal)
- `GetCopyFromMultipleDocsMsg(): Text` (internal)
- `GetLinesSuggestions(SalesLine: Record "Sales Line")` (internal)
- `GenerateSalesLineSuggestions(SearchQuery: Text; SearchStyle: Enum "Search Style"; SourceSalesHeader: Record "Sales Header"; var TempSalesLineAiSuggestion: Record "Sales Line AI Suggestions" temporary)` (internal)
- `AICall(SystemPromptTxt: SecretText; SearchQuery: Text; SearchStyle: Enum "Search Style"; SourceSalesHeader: Record "Sales Header"; var TempSalesLineAiSuggestion: Record "Sales Line AI Suggestions" temporary): Text` (internal)
- `AICall(SystemPromptTxt: SecretText; SearchQuery: Text; AOAIFunction: interface "AOAI Function"; var CompletionAnswer: Text): Variant` (internal)
- `RegisterCapability()`

Plus 2 local procedures.

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 7770 "AOAI Operation Response"](../codeunit/7770.md) (5 calls: `AICall → GetFunctionResponses`, `AICall → GetResult`, `AICall → GetStatusCode`, …)
- [Codeunit 7771 "Azure OpenAI"](../codeunit/7771.md) (5 calls: `AICall → GenerateChatCompletion`, `AICall → IsEnabled`, `AICall → SetAuthorization`, …)
- [Codeunit 7763 "AOAI Chat Messages"](../codeunit/7763.md) (4 calls: `AICall → AddTool`, `AICall → AddUserMessage`, `AICall → SetPrimarySystemMessage`, …)
- [Codeunit 8703 "Feature Telemetry"](../codeunit/8703.md) (4 calls: `AICall → LogError`, `AICall → LogUsage`, `GetLinesSuggestions → LogError`, …)
- [Codeunit 7291 "Search Items With Filters Func"](../codeunit/7291.md) (3 calls: `AICall → SetSearchQuery`, `AICall → SetSearchStyle`, `AICall → SetSourceDocumentRecordId`)
- [Codeunit 7758 "AOAI Function Response"](../codeunit/7758.md) (3 calls: `AICall → GetFunctionName`, `AICall → GetResult`, `AICall → IsSuccess`)
- [Codeunit 7341 "Magic Function"](../codeunit/7341.md) (2 calls: `AICall → Execute`, `AICall → GetName`)
- [Codeunit 7761 "AOAI Chat Completion Params"](../codeunit/7761.md) (2 calls: `AICall → SetMaxTokens`, `AICall → SetTemperature`)
- [Codeunit 7773 "Copilot Capability"](../codeunit/7773.md) (2 calls: `RegisterCapability → IsCapabilityRegistered`, `RegisterCapability → RegisterCapability`)
- [Codeunit 457 "Environment Information"](../codeunit/457.md) (1 call: `RegisterCapability → IsSaaSInfrastructure`)
- [Codeunit 7276 "SLS Prompts"](../codeunit/7276.md) (1 call: `BuildIntentSystemPrompt → GetSLSSystemPrompt`)
- [Codeunit 7343 "Notification Manager"](../codeunit/7343.md) (1 call: `AICall → SendNotification`)
- [Codeunit 7768 "AOAI Deployments"](../codeunit/7768.md) (1 call: `AICall → GetGPT41Latest`)

## Called by

- [Codeunit 7291 "Search Items With Filters Func"](../codeunit/7291.md) (6 calls: `Execute → GetChatCompletionResponseErr`, `Execute → GetCopyFromMultipleDocsMsg`, `Execute → GetFeatureName`, …)
- [Codeunit 7284 "Magic Function"](../codeunit/7284.md) (2 calls: `Execute → GetFeatureName`, `Execute → GetNoSalesLinesSuggestionsMsg`)
- [Page 7275 "Sales Line AI Suggestions"](../page/7275.md) (2 calls: `GenerateSalesLineSuggestions → GenerateSalesLineSuggestions`, `OnQueryClosePage → GetFeatureName`)
- [Codeunit 7276 "SLS Prompts"](../codeunit/7276.md) (1 call: `GetAzureKeyVaultSecret → GetFeatureName`)
- [Codeunit 7277 "Sales Line Suggestions Install"](../codeunit/7277.md) (1 call: `OnInstallAppPerCompany → RegisterCapability`)
- [Codeunit 7278 "Sales Line Suggestions Upgrade"](../codeunit/7278.md) (1 call: `RegisterCapability → RegisterCapability`)
- [Codeunit 7280 "Sales Line Utility"](../codeunit/7280.md) (1 call: `PrepareSalesLine → GetFeatureName`)
- [Codeunit 7282 "Search"](../codeunit/7282.md) (1 call: `SearchMultiple → GetFeatureName`)
- [Codeunit 7293 "Csv Handler"](../codeunit/7293.md) (1 call: `GenerateCsvMappingSuggestionFromAttachment → AICall`)
- [Page 7290 "Sales Line From Attachment"](../page/7290.md) (1 call: `GenerateSalesLineSuggestions → GenerateSalesLineSuggestions`)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "Sales Lines Suggestions Impl.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
