---
title: "Table 5076 Segment Header, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/table/5076-segment-header/points/
object: https://jonas-paprotka.de/ref/table/5076-segment-header/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/table/5076-segment-header/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/"
---

# Table 5076 Segment Header, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/table/5076-segment-header/points/

40 procedures and triggers with a step in src/Layers/W1/BaseApp/CRM/Segment/SegmentHeader.Table.al, in source order, read from the text, not from a run.

## No..OnValidate

[Line 38](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L38), trigger.

- [42](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L42) calls [Codeunit 310 No. Series](https://jonas-paprotka.de/ref/codeunit/310-no-series/) `TestManual`

## Description.OnValidate

[Line 52](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L52), trigger.

- [54](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L54) calls `UpdateSegLinesByFieldNo`

## Campaign No..OnValidate

[Line 63](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L63), trigger.

- [65](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L65) calls `UpdateSegLinesByFieldNo`

## Salesperson Code.OnValidate

[Line 74](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L74), trigger.

- [76](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L76) calls `UpdateSegLinesByFieldNo`

## Correspondence Type (Default).OnValidate

[Line 83](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L83), trigger.

- [98](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L98) calls `UpdateSegLinesByFieldNo`

## Interaction Template Code.OnValidate

[Line 107](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L107), trigger.

- [112](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L112) validates [Table 5076 Segment Header](https://jonas-paprotka.de/ref/table/5076-segment-header/) `Word Template Code`
- [114](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L114) calls `UpdateSegLinesByFieldNo`

## Unit Cost (LCY).OnValidate

[Line 124](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L124), trigger.

- [126](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L126) calls `UpdateSegLinesByFieldNo`

## Unit Duration (Min.).OnValidate

[Line 136](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L136), trigger.

- [138](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L138) calls `UpdateSegLinesByFieldNo`

## Attachment No..OnValidate

[Line 150](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L150), trigger.

- [152](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L152) calls `UpdateSegLinesByFieldNo`

## Date.OnValidate

[Line 160](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L160), trigger.

- [162](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L162) calls `UpdateSegLinesByFieldNo`

## Campaign Target.OnValidate

[Line 170](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L170), trigger.

- [172](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L172) calls `UpdateSegLinesByFieldNo`

## Information Flow.OnValidate

[Line 183](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L183), trigger.

- [185](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L185) calls `UpdateSegLinesByFieldNo`

## Initiated By.OnValidate

[Line 196](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L196), trigger.

- [198](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L198) calls `UpdateSegLinesByFieldNo`

## Campaign Response.OnValidate

[Line 212](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L212), trigger.

- [214](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L214) calls `UpdateSegLinesByFieldNo`

## Language Code (Default).OnLookup

[Line 248](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L248), trigger.

- [252](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L252) writes [Table 5076 Segment Header](https://jonas-paprotka.de/ref/table/5076-segment-header/) Modify
- [263](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L263) writes [Table 5076 Segment Header](https://jonas-paprotka.de/ref/table/5076-segment-header/) Modify

## Language Code (Default).OnValidate

[Line 269](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L269), trigger.

- [284](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L284) writes [Table 5104 Segment Interaction Language](https://jonas-paprotka.de/ref/table/5104-segment-interaction-language/) Insert(true)

## Send Word Docs. as Attmt..OnValidate

[Line 310](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L310), trigger.

- [312](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L312) calls `UpdateSegLinesByFieldNo`

## Subject (Default).OnValidate

[Line 324](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L324), trigger.

- [331](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L331) raises `OnBeforeValidateSubjectDefault`, IsHandled
- [335](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L335) calls `SegLinesExist`
- [340](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L340) writes [Table 5104 Segment Interaction Language](https://jonas-paprotka.de/ref/table/5104-segment-interaction-language/) Modify
- [341](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L341) writes [Table 5076 Segment Header](https://jonas-paprotka.de/ref/table/5076-segment-header/) Modify
- [351](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L351) writes [Table 5077 Segment Line](https://jonas-paprotka.de/ref/table/5077-segment-line/) ModifyAll

## Word Template Code.OnValidate

[Line 368](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L368), trigger.

- [370](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L370) calls `UpdateSegLinesByFieldNo`

## OnDelete

[Line 405](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L405), trigger.

- [412](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L412) writes [Table 5097 Segment Criteria Line](https://jonas-paprotka.de/ref/table/5097-segment-criteria-line/) DeleteAll
- [414](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L414) writes [Table 5078 Segment History](https://jonas-paprotka.de/ref/table/5078-segment-history/) DeleteAll
- [417](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L417) writes [Table 5104 Segment Interaction Language](https://jonas-paprotka.de/ref/table/5104-segment-interaction-language/) DeleteAll(true)
- [420](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L420) writes [Table 5077 Segment Line](https://jonas-paprotka.de/ref/table/5077-segment-line/) DeleteAll(true)

## OnInsert

[Line 425](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L425), trigger.

- [430](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L430) calls [Codeunit 310 No. Series](https://jonas-paprotka.de/ref/codeunit/310-no-series/) `AreRelated`
- [434](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L434) calls [Codeunit 310 No. Series](https://jonas-paprotka.de/ref/codeunit/310-no-series/) `GetNextNo`
- [438](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L438) calls `SetDefaultSalesperson`

## AssistEdit

[Line 467](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L467).

- [472](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L472) calls [Codeunit 310 No. Series](https://jonas-paprotka.de/ref/codeunit/310-no-series/) `LookupRelatedNoSeries`
- [473](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L473) calls [Codeunit 310 No. Series](https://jonas-paprotka.de/ref/codeunit/310-no-series/) `GetNextNo`

## CreateOpportunities

[Line 479](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L479).

- [487](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L487) calls [Table 5077 Segment Line](https://jonas-paprotka.de/ref/table/5077-segment-line/) `CreateOpportunity`

## CreateSegInteractions

[Line 491](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L491).

- [501](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L501) writes [Table 5104 Segment Interaction Language](https://jonas-paprotka.de/ref/table/5104-segment-interaction-language/) DeleteAll(true)
- [504](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L504) raises `OnCreateSegInteractionsOnAfterDeleteAll`, IsHandled
- [519](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L519) calls [Codeunit 5052 AttachmentManagement](https://jonas-paprotka.de/ref/codeunit/5052-attachmentmanagement/) `InsertAttachment`
- [520](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L520) writes [Table 5104 Segment Interaction Language](https://jonas-paprotka.de/ref/table/5104-segment-interaction-language/) Insert(true)

## CopyFromTemplate

[Line 524](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L524), local.

- [538](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L538) calls `UpdateSegLinesByFieldNo`
- [539](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L539) calls `UpdateSegLinesByFieldNo`
- [540](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L540) calls `UpdateSegLinesByFieldNo`

## UpdateSegLinesByFieldNo

[Line 543](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L543).

- [550](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L550) raises `OnBeforeUpdateSegLinesByFieldNo`, IsHandled
- [556](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L556) calls `SegLinesExist`
- [558](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L558) calls `UpdateSegHeader`
- [573](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L573) calls [Table 5077 Segment Line](https://jonas-paprotka.de/ref/table/5077-segment-line/) `AttachmentInherited`
- [577](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L577) calls `UpdateSegHeader`
- [591](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L591) writes [Table 5077 Segment Line](https://jonas-paprotka.de/ref/table/5077-segment-line/) ModifyAll
- [593](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L593) writes [Table 5077 Segment Line](https://jonas-paprotka.de/ref/table/5077-segment-line/) ModifyAll
- [595](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L595) writes [Table 5077 Segment Line](https://jonas-paprotka.de/ref/table/5077-segment-line/) ModifyAll
- [597](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L597) writes [Table 5077 Segment Line](https://jonas-paprotka.de/ref/table/5077-segment-line/) ModifyAll
- [600](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L600) writes [Table 5077 Segment Line](https://jonas-paprotka.de/ref/table/5077-segment-line/) ModifyAll
- [602](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L602) calls `UpdateSegHeader`
- [605](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L605) writes [Table 5077 Segment Line](https://jonas-paprotka.de/ref/table/5077-segment-line/) ModifyAll
- [607](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L607) writes [Table 5077 Segment Line](https://jonas-paprotka.de/ref/table/5077-segment-line/) ModifyAll
- [609](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L609) writes [Table 5077 Segment Line](https://jonas-paprotka.de/ref/table/5077-segment-line/) ModifyAll
- [611](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L611) writes [Table 5077 Segment Line](https://jonas-paprotka.de/ref/table/5077-segment-line/) ModifyAll
- [613](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L613) writes [Table 5077 Segment Line](https://jonas-paprotka.de/ref/table/5077-segment-line/) ModifyAll
- [615](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L615) writes [Table 5077 Segment Line](https://jonas-paprotka.de/ref/table/5077-segment-line/) ModifyAll
- [617](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L617) writes [Table 5077 Segment Line](https://jonas-paprotka.de/ref/table/5077-segment-line/) ModifyAll
- [619](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L619) writes [Table 5077 Segment Line](https://jonas-paprotka.de/ref/table/5077-segment-line/) ModifyAll
- [621](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L621) writes [Table 5077 Segment Line](https://jonas-paprotka.de/ref/table/5077-segment-line/) ModifyAll
- [623](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L623) writes [Table 5077 Segment Line](https://jonas-paprotka.de/ref/table/5077-segment-line/) ModifyAll
- [625](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L625) writes [Table 5077 Segment Line](https://jonas-paprotka.de/ref/table/5077-segment-line/) ModifyAll
- [628](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L628) raises `OnAfterUpdateSegLinesByFieldNo`

## ReuseLogged

[Line 640](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L640).

- [655](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L655) runs [Page 5139 Logged Segments](https://jonas-paprotka.de/ref/page/5139-logged-segments/)
- [666](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L666) calls [Codeunit 5062 SegCriteriaManagement](https://jonas-paprotka.de/ref/codeunit/5062-segcriteriamanagement/) `InsertReuseLogged`
- [670](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L670) raises `OnReuseLoggedOnBeforeFindInteractLogEntries`
- [674](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L674) calls `InsertSegmentLine`
- [675](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L675) calls [Codeunit 5061 SegHistoryManagement](https://jonas-paprotka.de/ref/codeunit/5061-seghistorymanagement/) `InsertLine`
- [678](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L678) raises `OnAfterReuseLogged`

## ReuseCriteria

[Line 681](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L681).

- [700](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L700) raises `OnBeforeReuseCriteria`, IsHandled
- [712](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L712) runs [Page 5141 Saved Segment Criteria List](https://jonas-paprotka.de/ref/page/5141-saved-segment-criteria-list/)
- [766](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L766) calls [Report 5198 Add Contacts](https://jonas-paprotka.de/ref/report/5198-add-contacts/) `SetOptions`
- [771](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L771) calls [Report 5198 Add Contacts](https://jonas-paprotka.de/ref/report/5198-add-contacts/) `UseRequestPage`
- [772](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L772) raises `OnReuseContactsOnBeforeAddContactsRun`
- [787](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L787) calls [Report 5197 Remove Contacts - Reduce](https://jonas-paprotka.de/ref/report/5197-remove-contacts-reduce/) `SetOptions`
- [788](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L788) calls [Report 5197 Remove Contacts - Reduce](https://jonas-paprotka.de/ref/report/5197-remove-contacts-reduce/) `UseRequestPage`
- [789](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L789) raises `OnReuseContactsOnBeforeReduceContactsRun`
- [804](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L804) calls [Report 5197 Remove Contacts - Reduce](https://jonas-paprotka.de/ref/report/5197-remove-contacts-reduce/) `SetOptions`
- [805](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L805) calls [Report 5196 Remove Contacts - Refine](https://jonas-paprotka.de/ref/report/5196-remove-contacts-refine/) `UseRequestPage`
- [806](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L806) raises `OnReuseContactsOnBeforeRefineContactsRun`
- [810](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L810) raises `OnReuseCriteriaSavedSegmentCriteriaLineCaseElse`

## SaveCriteria

[Line 815](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L815).

- [825](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L825) raises `OnBeforeSaveCriteria`, IsHandled
- [832](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L832) calls [Page 5142 Save Segment Criteria](https://jonas-paprotka.de/ref/page/5142-save-segment-criteria/) `GetValues`
- [834](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L834) writes [Table 5098 Saved Segment Criteria](https://jonas-paprotka.de/ref/table/5098-saved-segment-criteria/) Insert(true)
- [851](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L851) raises `OnSaveCriteriaOnBeforeInsertSegmentCriteriaLine`
- [852](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L852) writes [Table 5099 Saved Segment Criteria Line](https://jonas-paprotka.de/ref/table/5099-saved-segment-criteria-line/) Insert

## MaintainAttachment

[Line 858](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L858).

- [867](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L867) calls `OpenAttachment`
- [869](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L869) calls `CreateAttachment`

## CreateAttachment

[Line 875](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L875).

- [890](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L890) calls [Table 5104 Segment Interaction Language](https://jonas-paprotka.de/ref/table/5104-segment-interaction-language/) `CreateAttachment`

## CreateWordTemplateAttachment

[Line 893](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L893), internal.

- [909](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L909) writes [Table 5062 Attachment](https://jonas-paprotka.de/ref/table/5062-attachment/) Modify
- [912](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L912) calls `ModifyWordTemplateAttachment`
- [925](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L925) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `CreateOutStream`
- [928](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L928) calls [Table 5104 Segment Interaction Language](https://jonas-paprotka.de/ref/table/5104-segment-interaction-language/) `CreateWordTemplateAttachment`
- [932](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L932) calls `ModifyWordTemplateAttachment`

## ModifyWordTemplateAttachment

[Line 936](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L936), local.

- [947](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L947) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `CreateOutStream`
- [949](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L949) calls [Codeunit 9510 Document Service Management](https://jonas-paprotka.de/ref/codeunit/9510-document-service-management/) `EditInOneDrive`
- [951](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L951) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `CreateInStream`
- [953](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L953) writes [Table 5062 Attachment](https://jonas-paprotka.de/ref/table/5062-attachment/) Modify

## OpenAttachment

[Line 958](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L958).

- [967](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L967) calls [Table 5104 Segment Interaction Language](https://jonas-paprotka.de/ref/table/5104-segment-interaction-language/) `OpenAttachment`

## ImportAttachment

[Line 971](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L971).

- [985](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L985) writes [Table 5104 Segment Interaction Language](https://jonas-paprotka.de/ref/table/5104-segment-interaction-language/) Insert(true)
- [987](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L987) calls [Table 5104 Segment Interaction Language](https://jonas-paprotka.de/ref/table/5104-segment-interaction-language/) `ImportAttachment`

## ExportAttachment

[Line 991](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L991).

- [1000](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L1000) calls [Table 5104 Segment Interaction Language](https://jonas-paprotka.de/ref/table/5104-segment-interaction-language/) `ExportAttachment`

## RemoveAttachment

[Line 1004](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L1004).

- [1013](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L1013) calls [Table 5104 Segment Interaction Language](https://jonas-paprotka.de/ref/table/5104-segment-interaction-language/) `RemoveAttachment`

## UpdateSegHeader

[Line 1016](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L1016).

- [1022](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L1022) raises `OnBeforeUpdateSegHeader`, IsHandled
- [1025](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L1025) writes [Table 5076 Segment Header](https://jonas-paprotka.de/ref/table/5076-segment-header/) Modify
- [1031](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L1031) calls `CopyFromTemplate`
- [1035](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L1035) calls `CreateSegInteractions`
- [1037](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L1037) calls `CopyFromTemplate`
- [1041](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L1041) raises `OnUpdateSegHeaderOnBeforeSecondModify`
- [1042](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L1042) writes [Table 5076 Segment Header](https://jonas-paprotka.de/ref/table/5076-segment-header/) Modify
- [1045](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L1045) raises `OnAfterUpdateSegHeader`

## SetDefaultSalesperson

[Line 1048](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L1048), local.

- [1056](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L1056) validates [Table 5076 Segment Header](https://jonas-paprotka.de/ref/table/5076-segment-header/) `Salesperson Code`

## InsertSegmentLine

[Line 1059](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L1059), local.

- [1064](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L1064) validates [Table 5077 Segment Line](https://jonas-paprotka.de/ref/table/5077-segment-line/) `Contact No.`
- [1066](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L1066) writes [Table 5077 Segment Line](https://jonas-paprotka.de/ref/table/5077-segment-line/) Insert(true)
- [1068](https://jonas-paprotka.de/ref/table/5076-segment-header/source/#L1068) raises `OnAfterInsertSegmentLine`

## Source

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

JOP-AL, 2026-11-20.
