---
title: "Codeunit 4308 Agent Message Impl."
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/4308-agent-message-impl/
type: codeunit
id: 4308
name: "Agent Message Impl."
app: "System Application"
namespace: System.Agents
versions: "25-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/4308-agent-message-impl/source/25/ https://jonas-paprotka.de/ref/codeunit/4308-agent-message-impl/source/26/ https://jonas-paprotka.de/ref/codeunit/4308-agent-message-impl/source/27/ https://jonas-paprotka.de/ref/codeunit/4308-agent-message-impl/source/28/ https://jonas-paprotka.de/ref/codeunit/4308-agent-message-impl/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 4308 Agent Message Impl.

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/4308-agent-message-impl/

| | |
| --- | --- |
| App | System Application |
| Namespace | System.Agents |
| Versions | 25-28 |
| Source file | Agent/Interaction/Internal/AgentMessageImpl.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| GetMessageText | (var Record Agent Task Message) | Text | public | 25-26 | - | - |
| UpdateText | (var Record Agent Task Message, Text) | - | public | 25-28 | - | - |
| IsMessageEditable | (var Record Agent Task Message) | Boolean | public | 25-26 | - | - |
| SetStatusToSent | (var Record Agent Task Message) | - | public | 25-28 | - | - |
| DownloadAttachments | (var Record Agent Task Message) | - | public | 25-28 | - | - |
| UpdateAgentTaskMessageStatus | (var Record Agent Task Message, Option) | - | public | 25-26 | - | - |
| AddAttachment | (var Record Agent Task Message, var Record Agent Task File) | - | public | 26-27 | - | - |
| AddAttachment | (var Record Agent Task Message, Text[250], Text[100], InStream) | - | public | 26-28 | - | - |
| ShowOrDownloadAttachment | (BigInteger, BigInteger, Boolean) | - | public | 26-28 | - | - |
| ShowOrDownloadAttachment | (var Record Agent Task File, Boolean) | - | public | 26-28 | - | - |
| GetAttachments | (BigInteger, Guid, Record Agent Task File) | - | public | 26 | - | - |
| GetFileSizeDisplayText | (Decimal) | Text | public | 26-28 | - | - |
| GetText | (var Record Agent Task Message) | Text | public | 27-28 | - | - |
| IsEditable | (var Record Agent Task Message) | Boolean | public | 27-28 | - | - |
| SetIgnoreAttachment | (Boolean) | - | public | 27-28 | - | - |
| GetAttachments | (BigInteger, Guid, var Record Agent Task File) | - | public | 27-28 | - | - |
| UpdateStatus | (var Record Agent Task Message, Option) | - | public | 27 | - | - |
| GetText | (BigInteger, Guid) | Text | public | 28 | - | - |
| UpdateText | (BigInteger, Guid, Text) | - | public | 28 | - | - |
| IsEditable | (BigInteger, Guid) | Boolean | public | 28 | - | - |
| SetStatusToSent | (BigInteger, Guid) | - | public | 28 | - | - |
| AddAttachment | (var Record Agent Task Message, var Record Agent Task File, Text[250]) | - | public | 28 | - | - |
| AddAttachment | (var Record Agent Task Message, Text[250], Text[100], InStream, Text[250]) | - | public | 28 | - | - |

## Source

Symbols: Microsoft.SystemApplication.symbols.63ca2fa4-4f03-4f2b-a480-172fef340d3f, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 25: https://github.com/microsoft/BCApps, MIT, releases/25.x at 68d52c129129c83b2e396a473aaa5b2ce61d2eed.
AL source 26: https://github.com/microsoft/BCApps, MIT, releases/26.x at 78c4acf0d64a8eee157ea80164fa8fc2acffc9eb.
AL source 27: https://github.com/microsoft/BCApps, MIT, releases/27.x at 1749020b4c9445a43e4f7f540e89b7fa76ec25fd.
AL source 28: https://github.com/microsoft/BCApps, MIT, releases/28.x at 740f59156b249f8ed7cba2e28423f03ae7b07233.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
