---
title: "Table 5077 Segment Line"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/table/5077-segment-line/
type: table
id: 5077
name: "Segment Line"
app: "Base Application"
namespace: Microsoft.CRM.Segment
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/table/5077-segment-line/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Table 5077 Segment Line

Jonas Paprotka, https://jonas-paprotka.de/ref/table/5077-segment-line/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.CRM.Segment |
| Versions | 17-28 |
| Source file | CRM/Segment/SegmentLine.Table.al |

## Fields

| Id | Name | Type | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| 1 | Segment No. | Code[20] | 17-28 | - | - |
| 2 | Line No. | Integer | 17-28 | - | - |
| 3 | Contact No. | Code[20] | 17-28 | - | - |
| 4 | Campaign No. | Code[20] | 17-28 | - | - |
| 5 | Salesperson Code | Code[20] | 17-28 | - | - |
| 6 | Correspondence Type | Enum Correspondence Type | 17-28 | - | - |
| 7 | Interaction Template Code | Code[10] | 17-28 | - | - |
| 8 | Cost (LCY) | Decimal | 17-28 | - | - |
| 9 | Duration (Min.) | Decimal | 17-28 | - | - |
| 10 | Attachment No. | Integer | 17-28 | - | - |
| 11 | Campaign Response | Boolean | 17-28 | - | - |
| 12 | Contact Name | Text[100] | 17-28 | - | - |
| 13 | Information Flow | Option | 17-28 | - | - |
| 14 | Initiated By | Option | 17-28 | - | - |
| 15 | Contact Alt. Address Code | Code[10] | 17-28 | - | - |
| 16 | Evaluation | Enum Interaction Evaluation | 17-28 | - | - |
| 17 | Campaign Target | Boolean | 17-28 | - | - |
| 18 | Contact Company Name | Text[100] | 17-28 | - | - |
| 19 | Language Code | Code[10] | 17-28 | - | - |
| 22 | Description | Text[100] | 17-28 | - | - |
| 23 | Date | Date | 17-28 | - | - |
| 24 | Time of Interaction | Time | 17-28 | - | - |
| 25 | Attempt Failed | Boolean | 17-28 | - | - |
| 26 | To-do No. | Code[20] | 17-28 | - | - |
| 27 | Contact Company No. | Code[20] | 17-28 | - | - |
| 28 | Campaign Entry No. | Integer | 17-28 | - | - |
| 29 | Interaction Group Code | Code[10] | 17-28 | - | - |
| 31 | Document Type | Enum Interaction Log Entry Document Type | 17-28 | - | - |
| 32 | Document No. | Code[20] | 17-28 | - | - |
| 33 | Send Word Doc. As Attmt. | Boolean | 17-28 | - | - |
| 34 | Contact Via | Text[80] | 17-28 | - | - |
| 35 | Version No. | Integer | 17-28 | - | - |
| 36 | Doc. No. Occurrence | Integer | 17-28 | - | - |
| 37 | Subject | Text[100] | 17-28 | - | - |
| 44 | Opportunity No. | Code[20] | 17-28 | - | - |
| 50 | Contact Phone No. | Text[30] | 17-28 | - | - |
| 51 | Contact Mobile Phone No. | Text[30] | 17-28 | - | - |
| 52 | Contact Email | Text[80] | 17-28 | - | - |
| 53 | Word Template Code | Code[30] | 18-28 | - | - |
| 54 | Merged | Boolean | 22-28 | - | - |
| 9501 | Wizard Step | Enum Segment Line Wizard Step | 17-28 | - | - |
| 9502 | Wizard Contact Name | Text[100] | 17-28 | - | - |
| 9503 | Opportunity Description | Text[100] | 17-28 | - | - |
| 9504 | Campaign Description | Text[100] | 17-28 | - | - |
| 9505 | Interaction Successful | Boolean | 17-28 | - | - |
| 9506 | Dial Contact | Boolean | 17-28 | - | - |
| 9507 | Mail Contact | Boolean | 17-28 | - | - |

## Keys

| Name | Fields | Versions |
| --- | --- | --- |
| Key1, clustered | Segment No., Line No. | 17-28 |
| Key2 | Segment No., Campaign No., Date | 17-28 |
| Key3 | Contact No., Segment No. | 17-28 |
| Key4 | Campaign No. | 17-28 |
| Key5 | Campaign No., Contact Company No., Campaign Target | 17-28 |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| InitLine | () | - | public | 17-28 | - | - |
| AttachmentText | () | Text[30] | public | 17-28 | - | - |
| MaintainAttachment | () | - | public | 17-19 | Pending 17.0 | Replaced by MaintainSegLineAttachment() |
| MaintainSegLineAttachment | () | - | public | 17-28 | - | - |
| CreateAttachment | () | - | public | 17-19 | Pending 17.0 | Replaced by CreateSegLineAttachment() |
| CreateSegLineAttachment | () | - | public | 17-28 | - | - |
| OpenAttachment | () | - | public | 17-19 | Pending 17.0 | Replaced by OpenSegLineAttachment() |
| OpenSegLineAttachment | () | - | public | 17-28 | - | - |
| ImportAttachment | () | - | public | 17-19 | Pending 17.0 | Replaced by ImportSegLineAttachment |
| ImportSegLineAttachment | () | - | public | 17-28 | - | - |
| ExportAttachment | () | - | public | 17-19 | Pending 17.0 | Replaced by ExportSegLineAttachment() |
| ExportSegLineAttachment | () | - | public | 17-28 | - | - |
| RemoveAttachment | () | - | public | 17-28 | - | - |
| CreatePhoneCall | () | - | public | 17-28 | - | - |
| AttachmentInherited | () | Boolean | public | 17-28 | - | - |
| SetInteractionAttachment | () | - | public | 17-28 | - | - |
| CopyFromInteractLogEntry | (var Record Interaction Log Entry) | - | public | 17-28 | - | - |
| CreateInteractionFromContact | (var Record Contact) | - | public | 17-19 | Pending 17.0 | Replaced by CreateSegLineInteractionFromContact() |
| CreateSegLineInteractionFromContact | (var Record Contact) | - | public | 17-28 | - | - |
| CreateInteractionFromSalesperson | (var Record Salesperson/Purchaser) | - | public | 17-28 | - | - |
| CreateInteractionFromInteractLogEntry | (var Record Interaction Log Entry) | - | public | 17-28 | - | - |
| CreateInteractionFromTask | (var Record To-do) | - | public | 17-28 | - | - |
| CreateInteractionFromOpp | (var Record Opportunity) | - | public | 17-28 | - | - |
| CreateOpportunity | () | Code[20] | public | 17-28 | - | - |
| StartWizard | () | - | public | 17-28 | - | - |
| CheckStatus | () | - | public | 17-28 | - | - |
| FinishWizard | (Boolean) | - | public | 17-19 | Pending 17.0 | Replaced by FinishSegLineWizard() |
| FinishSegLineWizard | (Boolean) | - | public | 17-28 | - | - |
| ValidateCorrespondenceType | () | - | public | 17-28 | - | - |
| LoadContentBodyTextFromCustomLayoutAttachment | () | Text | public | 17-28 | - | - |
| UpdateContentBodyTextInCustomLayoutAttachment | (Text) | - | public | 17-28 | - | - |
| LoadAttachment | (Boolean) | - | public | 17-19 | Pending 17.0 | Replaced by LoadSegLineAttachment() |
| LoadSegLineAttachment | (Boolean) | - | public | 17-28 | - | - |
| MakePhoneCallFromContact | (var Record Contact, Record To-do, Integer, Text[30], Code[10]) | - | public | 17-28 | - | - |
| StartWizard2 | () | - | public | 17-28 | - | - |
| CheckPhoneCallStatus | () | - | public | 17-28 | - | - |
| LogPhoneCall | () | - | public | 17-19 | Pending 17.0 | Replaced by LogSegLinePhoneCall() |
| LogSegLinePhoneCall | () | - | public | 17-28 | - | - |
| ShowComment | () | - | public | 17-28 | - | - |
| SetComments | (var Record Inter. Log Entry Comment Line) | - | public | 17-28 | - | - |
| IsHTMLAttachment | () | Boolean | public | 17-28 | - | - |
| PreviewHTMLContent | () | - | public | 17-19 | Pending 17.0 | Replaced by PreviewSegLineHTMLContent() |
| PreviewSegLineHTMLContent | () | - | public | 17-28 | - | - |
| LanguageCodeOnLookup | () | - | public | 17-28 | - | - |
| FilterContactCompanyOpportunities | (var Record Opportunity) | - | public | 17-28 | - | - |
| ExportODataFields | () | - | public | 17-28 | - | - |
| ProcessPostponedAttachment | () | - | public | 21-28 | - | - |
| SendCreateOpportunityNotification | () | - | public | 22-28 | - | - |
| GetInteractionLogEntryNo | () | Integer | internal | 22-28 | - | - |
| HandleTrigger | () | - | internal | 22-28 | - | - |
| SetTempAttachment | (var InStream, Text) | - | public | 22-28 | - | - |
| ProcessInterLogEntryComments | (Integer) | - | public | 24-28 | - | - |
| CreateSegLineInteractionFromContactForEmail | (var Record Contact) | - | internal | 27-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterCheckStatus | (var Record Segment Line) | 17-28 | - | - |
| Integration event | OnAfterCopyFromInteractionLogEntry | (var Record Segment Line, Record Interaction Log Entry) | 17-28 | - | - |
| Integration event | OnAfterCreateFromTask | (var Record Segment Line, Record To-do) | 17-28 | - | - |
| Integration event | OnAfterInitLine | (var Record Segment Line, Record Segment Header) | 17-28 | - | - |
| Integration event | OnAfterFinishWizard | (var Record Segment Line, Record Interaction Log Entry, Boolean, Boolean) | 17-28 | - | - |
| Integration event | OnBeforeCheckStatus | (var Record Segment Line, var Boolean) | 17-22 | - | - |
| Integration event | OnBeforeSendCreateOpportunityNotification | (var Record Segment Line, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeSetCorrespondenceType | (var Record Segment Line, var Record Segment Line, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeStartWizard | (var Record Segment Line, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeStartWizard2 | (var Record Segment Line) | 17-28 | - | - |
| Integration event | OnCreateInteractionFromContactOnBeforeStartWizard | (var Record Segment Line, var Record Contact) | 17-28 | - | - |
| Integration event | OnCreateInteractionFromSalespersonOnBeforeStartWizard | (var Record Segment Line, Record Salesperson/Purchaser) | 17-28 | - | - |
| Integration event | OnCreateInteractionFromInteractLogEntryOnBeforeStartWizard | (var Record Segment Line, var Record Interaction Log Entry) | 17-28 | - | - |
| Integration event | OnCreateInteractionFromTaskOnBeforeStartWizard | (var Record Segment Line, Record To-do) | 17-28 | - | - |
| Integration event | OnCreateInteractionFromOppOnBeforeStartWizard | (var Record Segment Line, Record Opportunity) | 17-28 | - | - |
| Integration event | OnFinishWizardOnAfterSetSend | (var Record Segment Line, var Boolean) | 17-28 | - | - |
| Integration event | OnHandleTriggerCaseElse | (Record Segment Line, Record Interaction Template) | 17-28 | - | - |
| Integration event | OnValidateInteractionTemplateCode | (var Record Segment Line, var Record Contact, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeCreatePhoneCall | (var Record Segment Line, var Boolean) | 18-28 | - | - |
| Integration event | OnBeforeFinishSegLineWizard | (var Record Segment Line, Boolean) | 18-22 | - | - |
| Integration event | OnBeforeGetFinishInteractionFlag | (var Record Segment Line, Boolean, var Boolean, var Boolean) | 19-28 | - | - |
| Integration event | OnBeforeRunCreateInteraction | (var Record Segment Line, var Boolean) | 19-28 | - | - |
| Integration event | OnBeforeShowComment | (var Record Segment Line, var Record Inter. Log Entry Comment Line, var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeCreateSegLineInteractionFromContact | (var Record Segment Line, var Record Contact, var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeCreateInteractionFromInteractLogEntry | (var Record Segment Line, var Record Salesperson/Purchaser) | 20-28 | - | - |
| Integration event | OnCreatePhoneCallOnBeforeStartWizard2 | (var Record Segment Line, Record Segment Line) | 21-28 | - | - |
| Integration event | OnDeleteOnBeforeSegmentCriteriaLineDeleteAll | (Record Segment Line, Record Segment Criteria Line) | 21-28 | - | - |
| Integration event | OnFinishSegLineWizardOnBeforeAssignEmptyOpportunityStep | (var Record Segment Line, var Boolean) | 21-28 | - | - |
| Integration event | OnFinishSegLineWizardBeforeLogInteraction | (var Record Segment Line, var Boolean) | 21-28 | - | - |
| Integration event | OnBeforeCheckStatus | (var Record Segment Line, var Boolean, var Record Attachment) | 23-28 | - | - |
| Integration event | OnBeforeFinishSegLineWizard | (var Record Segment Line, Boolean, var Record Attachment, var Record Inter. Log Entry Comment Line, var Boolean) | 23-28 | - | - |
| Integration event | OnValidateInteractionTemplateCodeOnBeforeGetSegInteractTemplLanguage | (var Record Segment Line, var Boolean) | 23-28 | - | - |
| Integration event | OnValidateLanguageCodeOnBeforeGetSegmentHeaderGlobal | (var Record Segment Line, var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeFindLanguage | (var Record Segment Line, Code[10], Code[10], var Code[10], var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeSetInteractionAttachment | (var Record Segment Line, var Boolean) | 23-28 | - | - |
| Integration event | OnCreateInteractionMergeDataOnBeforeTempInteractionMergeDataInsert | (var Record Interaction Merge Data, var Record Segment Line) | 23-28 | - | - |
| Integration event | OnLoadTempAttachmentOnBeforeInsertTempAttachment | (Record Segment Line, var Record Attachment) | 23-28 | - | - |
| Integration event | OnValidateInteractionTemplateCodeOnBeforeGettingContact | (Record Segment Line, Record Segment Line, var Record Contact, var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeHandleTrigger | (var Record Segment Line, var Record Attachment, var Boolean, var Boolean) | 25-28 | - | - |
| Integration event | OnInteractionTemplValidateOnBeforeGetInteractTemplLanguage | (var Record Segment Line, var Boolean) | 27-28 | - | - |
| Integration event | OnStartWizard2OnBeforeInsert | (var Record Segment Line, Record Campaign) | 28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
