---
id: object/table/4356
type: object
title: Table 4356 "Agent Message Template"
summary: Table 4356 "Agent Message Template" in AgentDesignExperience (System.Agents.Designer). 10 fields, 6 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - table
  - agentdesignexperience
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: 26c74c3f757378684ca6f9ce6fdc2732ea0e2ad605a550d09362589aa3964df5
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/AgentDesignExperience/app/Interaction/Template/AgentMessageTemplate.Table.al
    title: src/Apps/W1/AgentDesignExperience/app/Interaction/Template/AgentMessageTemplate.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 4356
name: Agent Message Template
namespace: System.Agents.Designer
app: AgentDesignExperience
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: 10
  procedures: 11
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 1
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 2
  called_by: 0
  implements: 0
---

# Table 4356 "Agent Message Template"

> Table 4356 "Agent Message Template" in AgentDesignExperience (System.Agents.Designer). 10 fields, 6 public procedures. Introduced in BC29, still in BC30.

AgentDesignExperience · System.Agents.Designer · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/AgentDesignExperience/app/Interaction/Template/AgentMessageTemplate.Table.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Agent Message Template |
| Access | Internal |
| Extensible | false |
| DataClassification | CustomerContent |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | ID | Integer | Specifies the unique identifier of the agent message template. | DataClassification SystemMetadata |
| 2 | Name | Text[150] | Specifies the name of the agent message template. |  |
| 10 | Message From Text | Text[250] | Specifies who the message is from. |  |
| 11 | Message External Id | Text[2048] | Specifies the title of the message to be included in the agent task. |  |
| 12 | Message Requires Review | Boolean | Specifies whether the agent task requires review before it can be completed. | DataClassification SystemMetadata |
| 13 | Sanitize Message Content | Boolean | Specifies whether to sanitize the message content before including it in the agent task. |  |
| 14 | Message Content | Blob | Specifies the content of the message to be included in the agent task. |  |
| 15 | Ignore Attachments | Boolean | Specifies whether to ignore processing of attachments in the message. |  |
| 20 | Attachments | Blob | Specifies the attachments to be included in the agent task. | DataClassification SystemMetadata |
| 21 | Created with task | Boolean | Specifies whether the message template was created with a task. | DataClassification SystemMetadata |

## Keys

- Key1: ID (clustered)

## Procedures

- `GetMessageText(): Text`
- `SetMessageText(NewMessageText: Text)`
- `GetAttachmentsText(): Text`
- `SetAttachmentsText(NewAttachmentsText: Text)`
- `SaveAttachments(var AgentMessageTemplate: Record "Agent Message Template"; var TempAgentTaskAttachment: Record "Agent Task File" temporary)`
- `LoadAttachments(var AgentMessageTemplate: Record "Agent Message Template" temporary; var TempAgentTaskAttachment: Record "Agent Task File" temporary)`

Plus 5 local procedures.

## Triggers

OnInsert, OnModify, OnRename, OnDelete

## Referenced by

1 fields in 1 objects relate to this table (TableRelation or CalcFormula).

- [Table 4357 "Agent Task Template"](../table/4357.md): Message Template Name

## 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 4110 "Base64 Convert"](../codeunit/4110.md) (2 calls: `ConvertAttachmentToJson → ToBase64`, `GetAttachmentFromJson → FromBase64`)
- [Codeunit 4362 "Agent Designer Permissions"](../codeunit/4362.md) (1 call: `ValidatePermissions → VerifyCurrentUserCanManageTemplates`)

## 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: "table", object_name: "Agent Message Template")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
