---
title: "Codeunit 4311 Agent Task Msg. Builder Impl., extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/4311-agent-task-msg-builder-impl/points/
object: https://jonas-paprotka.de/ref/codeunit/4311-agent-task-msg-builder-impl/
app: "System Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/4311-agent-task-msg-builder-impl/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 4311 Agent Task Msg. Builder Impl., extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/4311-agent-task-msg-builder-impl/points/

5 procedures and triggers with a step in src/System Application/App/Agent/Interaction/Internal/AgentTaskMsgBuilderImpl.Codeunit.al, in source order, read from the text, not from a run.

## Create

[Line 94](https://jonas-paprotka.de/ref/codeunit/4311-agent-task-msg-builder-impl/source/#L94).

- [102](https://jonas-paprotka.de/ref/codeunit/4311-agent-task-msg-builder-impl/source/#L102) calls `VerifyMandatoryFieldsSet`
- [104](https://jonas-paprotka.de/ref/codeunit/4311-agent-task-msg-builder-impl/source/#L104) calls `SanitizeMessage`
- [105](https://jonas-paprotka.de/ref/codeunit/4311-agent-task-msg-builder-impl/source/#L105) calls [Codeunit 4300 Agent Task Impl.](https://jonas-paprotka.de/ref/codeunit/4300-agent-task-impl/) `AddMessage`
- [116](https://jonas-paprotka.de/ref/codeunit/4311-agent-task-msg-builder-impl/source/#L116) calls [Codeunit 4308 Agent Message Impl.](https://jonas-paprotka.de/ref/codeunit/4308-agent-message-impl/) `SetIgnoreAttachment`
- [117](https://jonas-paprotka.de/ref/codeunit/4311-agent-task-msg-builder-impl/source/#L117) calls [Codeunit 4308 Agent Message Impl.](https://jonas-paprotka.de/ref/codeunit/4308-agent-message-impl/) `AddAttachment`
- [121](https://jonas-paprotka.de/ref/codeunit/4311-agent-task-msg-builder-impl/source/#L121) calls [Codeunit 4300 Agent Task Impl.](https://jonas-paprotka.de/ref/codeunit/4300-agent-task-impl/) `SetTaskStatusToReadyIfPossible`

## AddAttachment

[Line 147](https://jonas-paprotka.de/ref/codeunit/4311-agent-task-msg-builder-impl/source/#L147).

- [155](https://jonas-paprotka.de/ref/codeunit/4311-agent-task-msg-builder-impl/source/#L155) writes [Table 2000000274 Agent Task File](https://jonas-paprotka.de/ref/table/2000000274-agent-task-file/) Insert
- [158](https://jonas-paprotka.de/ref/codeunit/4311-agent-task-msg-builder-impl/source/#L158) writes [Table 2000000274 Agent Task File](https://jonas-paprotka.de/ref/table/2000000274-agent-task-file/) Modify

## AddAttachment

[Line 192](https://jonas-paprotka.de/ref/codeunit/4311-agent-task-msg-builder-impl/source/#L192).

- [209](https://jonas-paprotka.de/ref/codeunit/4311-agent-task-msg-builder-impl/source/#L209) calls `GetContentTypeFromFilename`

## UploadAttachment

[Line 217](https://jonas-paprotka.de/ref/codeunit/4311-agent-task-msg-builder-impl/source/#L217).

- [226](https://jonas-paprotka.de/ref/codeunit/4311-agent-task-msg-builder-impl/source/#L226) calls `AddAttachment`
- [226](https://jonas-paprotka.de/ref/codeunit/4311-agent-task-msg-builder-impl/source/#L226) calls `GetContentTypeFromFilename`

## GetAttachments

[Line 242](https://jonas-paprotka.de/ref/codeunit/4311-agent-task-msg-builder-impl/source/#L242).

- [249](https://jonas-paprotka.de/ref/codeunit/4311-agent-task-msg-builder-impl/source/#L249) writes [Table 2000000274 Agent Task File](https://jonas-paprotka.de/ref/table/2000000274-agent-task-file/) Insert

## Source

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

JOP-AL, 2026-11-20.
