---
id: object/table/5064
type: object
title: Table 5064 "Interaction Template"
summary: Table 5064 "Interaction Template" in Base Application (Microsoft.CRM.Interaction). 20 fields, 2 events. Present since at least BC23, still in BC30, changed in BC24, BC27-28.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "28"
  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: 045a0f39006b5dcfa0edb889ff4d3838e4d6cb58ac0c7843185534064d20adf3
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/CRM/Interaction/InteractionTemplate.Table.al
    title: src/Layers/W1/BaseApp/CRM/Interaction/InteractionTemplate.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: 5064
name: Interaction Template
namespace: Microsoft.CRM.Interaction
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "27"
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 20
  procedures: 3
  events: 2
  subscribers: 0
relations:
  out: 9
  referenced_by: 35
  pages: 2
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 5064 "Interaction Template"

> Table 5064 "Interaction Template" in Base Application (Microsoft.CRM.Interaction). 20 fields, 2 events. Present since at least BC23, still in BC30, changed in BC24, BC27-28.

Base Application · Microsoft.CRM.Interaction · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/CRM/Interaction/InteractionTemplate.Table.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Interaction Template |
| 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 | Code | Code[10] | Specifies the code for the interaction template. | NotBlank |
| 2 | Interaction Group Code | Code[10] | Specifies the code for the interaction group to which the interaction template belongs. | TableRelation [Table 5063 "Interaction Group"](../table/5063.md) (Interaction Group); NotBlank |
| 3 | Description | Text[100] | Specifies a description of the interaction template. |  |
| 4 | Unit Cost (LCY) | Decimal | Specifies the cost, in LCY, of one unit of the item or resource on the line. <small>via [Page 5075 "Interaction Templates"](../page/5075.md)</small> |  |
| 5 | Unit Duration (Min.) | Decimal | Specifies the usual duration of interactions created using the interaction template. <small>via [Page 5075 "Interaction Templates"](../page/5075.md)</small> |  |
| 6 | Information Flow | Option | Specifies the direction of the information flow for the interaction template. There are two options: Outbound and Inbound. Select Outbound if the information is usually sent by your company. Select Inbound if the information is usually received by your company. | OptionCaption: ,Outbound,Inbound |
| 7 | Initiated By | Option | Specifies who usually initiates interactions created using the interaction template. There are two options: Us and Them. Select Us if the interaction is usually initiated by your company. Select Them if the information is usually initiated by your contacts. | OptionCaption: ,Us,Them |
| 8 | Attachment No. | Integer | — | FlowField: lookup("Interaction Tmpl. Language"."Attachment No." where("Interaction Template Code" = field(Code), "Language Code" = field("Language Code (Default)"))); not editable |
| 9 | Campaign No. | Code[20] | Specifies the number of the campaign for which the interaction template has been created. | TableRelation [Table 5071 "Campaign"](../table/5071.md) |
| 10 | Campaign Target | Boolean | Specifies that the contact who is involved in the interaction is the target of a campaign. This is used to measure the response rate of a campaign. |  |
| 11 | Campaign Response | Boolean | Specifies that the interaction template is being used to record interactions that are a response to a campaign. For example, coupons that are sent in as a response to a campaign. |  |
| 12 | Correspondence Type (Default) | Enum "Correspondence Type" | Specifies the preferred type of correspondence for the interaction. NOTE: If you use the Web client, you must not select the Hard Copy option because printing is not possible from the web client. <small>via [Page 5075 "Interaction Templates"](../page/5075.md)</small> | enum [Enum 5076 "Correspondence Type"](../enum/5076.md) |
| 13 | Date Filter | Date | — | FlowFilter |
| 14 | No. of Interactions | Integer | Specifies the number of interactions that have been created using this interaction template. | FlowField: count("Interaction Log Entry" where("Interaction Template Code" = field(Code), Canceled = const(false), Date = field("Date Filter"), Postponed = const(false))); not editable |
| 15 | Cost (LCY) | Decimal | Specifies the total cost of the interactions created using the interaction template. This field is not editable. <small>via [Page 5079 "Interaction Tmpl. Statistics"](../page/5079.md)</small> | FlowField: sum("Interaction Log Entry"."Cost (LCY)" where("Interaction Template Code" = field(Code), Canceled = const(false), Date = field("Date Filter"), Postponed = const(false))); not editable |
| 16 | Duration (Min.) | Decimal | Specifies the total duration of the interactions created using this interaction template. The field is not editable. <small>via [Page 5079 "Interaction Tmpl. Statistics"](../page/5079.md)</small> | FlowField: sum("Interaction Log Entry"."Duration (Min.)" where("Interaction Template Code" = field(Code), Canceled = const(false), Date = field("Date Filter"), Postponed = const(false))); not editable |
| 17 | Language Code (Default) | Code[10] | Specifies the default language code for the interaction. If the contact's preferred language is not available, then the program uses this language as the default language. <small>via [Page 5075 "Interaction Templates"](../page/5075.md)</small> | TableRelation [Table 5103 "Interaction Tmpl. Language"](../table/5103.md) ("Interaction Tmpl. Language"."Language Code" where("Interaction Template Code" = field(Code))) |
| 18 | Wizard Action | Enum "Interaction Template Wizard Action" | Specifies the action to perform when you click Next in the first page of the Create Interaction guide. Blank results in no action. Open will fill out the template and open the email editor where you can edit the text if needed. Merge will fill out the template and send it immediately. | enum [Enum 5082 "Interaction Template Wizard Action"](../enum/5082.md) |
| 19 | Ignore Contact Corres. Type | Boolean | Specifies that the correspondence type that you select in the Correspondence Type (Default) field should be used. |  |
| 20 | Word Template Code | Code[30] | Specifies the Word template to use when you create communications for an interaction. The Word template will create either a document or be used as the body text in an email. | TableRelation [Table 9988 "Word Template"](../table/9988.md) ("Word Template".Code where("Table ID" = const(Database::"Interaction Merge Data"))) |

## Keys

- Key1: Code (clustered)
- Key2: Interaction Group Code

## Events published

- `OnBeforeValidateWizardAction(var InteractionTemplate: Record "Interaction Template"; var IsHandled: Boolean)` (integration)
- `OnBeforeValidateLanguageCodeDefault(var InteractionTemplate: Record "Interaction Template"; var xInteractionTemplate: Record "Interaction Template"; var IsHandled: Boolean)` (integration)

## Procedures

1 local procedures, no public ones.

## Triggers

OnDelete

## Relations

- lookup page [Page 5075 "Interaction Templates"](../page/5075.md)
- Interaction Group Code: TableRelation [Table 5063 "Interaction Group"](../table/5063.md)
- Cost (LCY): CalcFormula [Table 5065 "Interaction Log Entry"](../table/5065.md)
- Duration (Min.): CalcFormula [Table 5065 "Interaction Log Entry"](../table/5065.md)
- No. of Interactions: CalcFormula [Table 5065 "Interaction Log Entry"](../table/5065.md)
- Campaign No.: TableRelation [Table 5071 "Campaign"](../table/5071.md)
- Attachment No.: CalcFormula [Table 5103 "Interaction Tmpl. Language"](../table/5103.md)
- Language Code (Default): TableRelation [Table 5103 "Interaction Tmpl. Language"](../table/5103.md)
- Word Template Code: TableRelation [Table 9988 "Word Template"](../table/9988.md)

## Referenced by

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

- [Table 5122 "Interaction Template Setup"](../table/5122.md): Cover Sheets, E-Mail Draft, E-Mails, Meeting Invitation, Outg. Calls, Purch Blnkt Ord, Purch Cr Memos, Purch Invoices, Purch. Orders, Purch. Quotes, Purch. Rcpt., Purch. Return Ord. Cnfrmn., Purch. Return Shipment, Sales Blnkt. Ord, Sales Cr. Memo, Sales Draft Invoices, Sales Finance Charge Memo, Sales Invoices, Sales Ord. Cnfrmn., Sales Quotes, Sales Return Order, Sales Return Receipt, Sales Rmdr., Sales Shpt. Note, Sales Statement, Serv Ord Create, Serv Ord Post, Service Contract, Service Contract Quote, Service Quote
- [Table 5065 "Interaction Log Entry"](../table/5065.md): Interaction Template Code
- [Table 5076 "Segment Header"](../table/5076.md): Interaction Template Code
- [Table 5077 "Segment Line"](../table/5077.md): Interaction Template Code
- [Table 5080 "To-do"](../table/5080.md): Interaction Template Code
- [Table 5103 "Interaction Tmpl. Language"](../table/5103.md): Interaction Template Code

## Pages and codeunits on this table

- [Page 5075 "Interaction Templates"](../page/5075.md) (source table)
- [Page 5079 "Interaction Tmpl. Statistics"](../page/5079.md) (source table)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24, BC27-28

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