---
title: "Codeunit 4581 SOA Send Replies, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/points/
object: https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/
app: "Sales Order Agent"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/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 4581 SOA Send Replies, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/points/

7 procedures and triggers with a step in src/Apps/W1/SalesOrderAgent/app/src/Integration/SOASendReplies.Codeunit.al, in source order, read from the text, not from a run.

## OnRun

[Line 19](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L19), trigger.

- [21](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L21) calls `SendEmailReplies`

## SendEmailReplies

[Line 36](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L36), local.

- [46](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L46) calls `FailExhaustedReplies`
- [63](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L63) calls `SendEmailReply`
- [66](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L66) calls `ApplyReplyResults`

## FailExhaustedReplies

[Line 73](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L73), local.

- [90](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L90) calls [Codeunit 4418 SOA Reply Retry Mgt.](https://jonas-paprotka.de/ref/codeunit/4418-soa-reply-retry-mgt/) `IsExhausted`
- [94](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L94) writes [Table 2000000263 Agent Task Message](https://jonas-paprotka.de/ref/table/2000000263-agent-task-message/) Insert
- [102](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L102) calls `GiveUpOnDelivery`

## SendEmailReply

[Line 111](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L111), local.

- [119](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L119) calls `AddReplyResult`
- [120](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L120) calls [Codeunit 8703 Feature Telemetry](https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/) `LogError`
- [120](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L120) calls [Codeunit 4400 SOA Setup](https://jonas-paprotka.de/ref/codeunit/4400-soa-setup/) `GetFeatureName`
- [126](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L126) calls `AddReplyResult`
- [127](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L127) calls [Codeunit 8703 Feature Telemetry](https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/) `LogError`
- [127](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L127) calls [Codeunit 4400 SOA Setup](https://jonas-paprotka.de/ref/codeunit/4400-soa-setup/) `GetFeatureName`
- [131](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L131) runs [Codeunit 4419 SOA Send Reply](https://jonas-paprotka.de/ref/codeunit/4419-soa-send-reply/)
- [132](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L132) calls `AddReplyResult`
- [133](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L133) calls [Codeunit 8703 Feature Telemetry](https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/) `LogUsage`
- [133](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L133) calls [Codeunit 4400 SOA Setup](https://jonas-paprotka.de/ref/codeunit/4400-soa-setup/) `GetFeatureName`
- [141](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L141) calls `AddReplyResult`
- [142](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L142) calls [Codeunit 8703 Feature Telemetry](https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/) `LogError`
- [142](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L142) calls [Codeunit 4400 SOA Setup](https://jonas-paprotka.de/ref/codeunit/4400-soa-setup/) `GetFeatureName`

## AddReplyResult

[Line 149](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L149), local.

- [155](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L155) writes [Table 2000000263 Agent Task Message](https://jonas-paprotka.de/ref/table/2000000263-agent-task-message/) Insert

## ApplyReplyResults

[Line 158](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L158), local.

- [167](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L167) calls [Codeunit 4418 SOA Reply Retry Mgt.](https://jonas-paprotka.de/ref/codeunit/4418-soa-reply-retry-mgt/) `ClearAttempts`
- [169](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L169) calls [Codeunit 4418 SOA Reply Retry Mgt.](https://jonas-paprotka.de/ref/codeunit/4418-soa-reply-retry-mgt/) `RegisterFailedAttempt`

## GiveUpOnDelivery

[Line 177](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L177), local.

- [188](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L188) calls [Codeunit 4418 SOA Reply Retry Mgt.](https://jonas-paprotka.de/ref/codeunit/4418-soa-reply-retry-mgt/) `GetMaxAttempts`
- [192](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L192) calls [Codeunit 4418 SOA Reply Retry Mgt.](https://jonas-paprotka.de/ref/codeunit/4418-soa-reply-retry-mgt/) `GetMaxAttempts`
- [194](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L194) runs [Codeunit 4408 SOA Set Reply Failed](https://jonas-paprotka.de/ref/codeunit/4408-soa-set-reply-failed/)
- [197](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L197) calls [Codeunit 8703 Feature Telemetry](https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/) `LogError`
- [197](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L197) calls [Codeunit 4400 SOA Setup](https://jonas-paprotka.de/ref/codeunit/4400-soa-setup/) `GetFeatureName`
- [201](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L201) calls [Codeunit 4418 SOA Reply Retry Mgt.](https://jonas-paprotka.de/ref/codeunit/4418-soa-reply-retry-mgt/) `ClearAttempts`
- [202](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L202) calls [Codeunit 8703 Feature Telemetry](https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/) `LogUsage`
- [202](https://jonas-paprotka.de/ref/codeunit/4581-soa-send-replies/source/#L202) calls [Codeunit 4400 SOA Setup](https://jonas-paprotka.de/ref/codeunit/4400-soa-setup/) `GetFeatureName`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
