---
id: object/codeunit/4598
type: object
title: Codeunit 4598 "SOA Instructions"
summary: Codeunit 4598 "SOA Instructions" in SalesOrderAgent (Microsoft.Agent.SalesOrderAgent). 9 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - salesorderagent
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: b43487327902c3aa11d5283a6d4aedfa9fc669951289dad9808e583bc024e839
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/SalesOrderAgent/app/src/Setup/SOAInstructions.Codeunit.al
    title: src/Apps/W1/SalesOrderAgent/app/src/Setup/SOAInstructions.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/9910
object_type: codeunit
object_id: 4598
name: SOA Instructions
namespace: Microsoft.Agent.SalesOrderAgent
app: SalesOrderAgent
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: 12
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 5
  called_by: 8
  implements: 0
---

# Codeunit 4598 "SOA Instructions"

> Codeunit 4598 "SOA Instructions" in SalesOrderAgent (Microsoft.Agent.SalesOrderAgent). 9 public procedures. Introduced in BC29, still in BC30.

SalesOrderAgent · Microsoft.Agent.SalesOrderAgent · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/SalesOrderAgent/app/src/Setup/SOAInstructions.Codeunit.al) · facts from BC29

## Properties

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

## Procedures

- `GetSOAInstructions(): SecretText` (internal)
- `GetBroaderItemSearchPrompt(): SecretText` (internal)
- `GetBroaderItemSearchSystemPrompt(): SecretText` (internal)
- `GetOutputMessageSignatureUpdateTool(): SecretText` (internal)
- `GetOutputMessageSignatureUpdateSystemPrompt(): SecretText` (internal)
- `GetMailTemplateCheckTool(): SecretText` (internal)
- `GetMailTemplateCheckSystemPrompt(): SecretText` (internal)
- `GetItemSelectorSystemPrompt(var Prompt: SecretText): Boolean` (internal)
- `GetItemSelectorPrompt(): SecretText` (internal)

Plus 3 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 4400 "SOA Setup"](../codeunit/4400.md) (4 calls: `AddCultureToBroaderItemSearchSystemPrompt → GetCommunicationLanguageCodeAndFormat`, `AddCultureToBroaderItemSearchSystemPrompt → GetFeatureName`, `GetMailTemplateCheckSystemPrompt → GetFeatureName`, …)
- [Codeunit 2200 "Azure Key Vault"](../codeunit/2200.md) (2 calls: `GetMailTemplateCheckSystemPrompt → GetAzureKeyVaultSecret`, `GetSOAInstructions → GetAzureKeyVaultSecret`)
- [Codeunit 43 "Language"](../codeunit/43.md) (2 calls: `AddCultureToBroaderItemSearchSystemPrompt → GetCultureName`, `AddCultureToBroaderItemSearchSystemPrompt → GetLanguageId`)
- [Codeunit 4312 "Agent Session"](../codeunit/4312.md) (1 call: `AddCultureToBroaderItemSearchSystemPrompt → GetCurrentSessionAgentTaskId`)
- [Codeunit 8703 "Feature Telemetry"](../codeunit/8703.md) (1 call: `AddCultureToBroaderItemSearchSystemPrompt → LogError`)

## Called by

- [Codeunit 4402 "SOA Output Message Setup"](../codeunit/4402.md) (2 calls: `GetAddSignatureSystemInstructions → GetOutputMessageSignatureUpdateSystemPrompt`, `GetMailTemplateCheckSystemInstructions → GetMailTemplateCheckSystemPrompt`)
- [Codeunit 4002 "SOA Prompt Builder"](../codeunit/4002.md) (1 call: `PrepareInstructions → GetSOAInstructions`)
- [Codeunit 4403 "SOA Output Message Validation"](../codeunit/4403.md) (1 call: `GetPrompt → GetOutputMessageSignatureUpdateTool`)
- [Codeunit 4407 "SOA Email Template Validation"](../codeunit/4407.md) (1 call: `GetPrompt → GetMailTemplateCheckTool`)
- [Codeunit 4416 "SOA Item Selector Func"](../codeunit/4416.md) (1 call: `GetPrompt → GetItemSelectorPrompt`)
- [Codeunit 4417 "SOA Item Selector"](../codeunit/4417.md) (1 call: `GetItemSelectorSystemPrompt → GetItemSelectorSystemPrompt`)
- [Codeunit 4596 "SOA Broader Item Search"](../codeunit/4596.md) (1 call: `BuildBroaderItemSearchSystemPrompt → GetBroaderItemSearchSystemPrompt`)
- [Codeunit 4597 "SOA Broader Item Search Func"](../codeunit/4597.md) (1 call: `GetPrompt → GetBroaderItemSearchPrompt`)

## Recent changes

- 2026-08-15 [#9910 [SOA] Move attachment processing to direct model reading](../../changes/bcapps/9910.md) (main, BC30, feature)

## 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: "SOA Instructions")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
