---
title: "Codeunit 5061 SegHistoryManagement, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/5061-seghistorymanagement/points/
object: https://jonas-paprotka.de/ref/codeunit/5061-seghistorymanagement/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/5061-seghistorymanagement/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/"
---

# Codeunit 5061 SegHistoryManagement, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/5061-seghistorymanagement/points/

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

## InsertLine

[Line 18](https://jonas-paprotka.de/ref/codeunit/5061-seghistorymanagement/source/#L18).

- [20](https://jonas-paprotka.de/ref/codeunit/5061-seghistorymanagement/source/#L20) calls `InitLine`
- [22](https://jonas-paprotka.de/ref/codeunit/5061-seghistorymanagement/source/#L22) writes [Table 5078 Segment History](https://jonas-paprotka.de/ref/table/5078-segment-history/) Insert

## DeleteLine

[Line 25](https://jonas-paprotka.de/ref/codeunit/5061-seghistorymanagement/source/#L25).

- [27](https://jonas-paprotka.de/ref/codeunit/5061-seghistorymanagement/source/#L27) calls `InitLine`
- [29](https://jonas-paprotka.de/ref/codeunit/5061-seghistorymanagement/source/#L29) writes [Table 5078 Segment History](https://jonas-paprotka.de/ref/table/5078-segment-history/) Insert

## InitLine

[Line 32](https://jonas-paprotka.de/ref/codeunit/5061-seghistorymanagement/source/#L32), local.

- [42](https://jonas-paprotka.de/ref/codeunit/5061-seghistorymanagement/source/#L42) raises `OnAfterInitLine`

## GoBack

[Line 45](https://jonas-paprotka.de/ref/codeunit/5061-seghistorymanagement/source/#L45).

- [73](https://jonas-paprotka.de/ref/codeunit/5061-seghistorymanagement/source/#L73) writes [Table 5077 Segment Line](https://jonas-paprotka.de/ref/table/5077-segment-line/) DeleteAll(true)
- [80](https://jonas-paprotka.de/ref/codeunit/5061-seghistorymanagement/source/#L80) validates [Table 5077 Segment Line](https://jonas-paprotka.de/ref/table/5077-segment-line/) `Contact No.`
- [81](https://jonas-paprotka.de/ref/codeunit/5061-seghistorymanagement/source/#L81) writes [Table 5077 Segment Line](https://jonas-paprotka.de/ref/table/5077-segment-line/) Insert(true)
- [86](https://jonas-paprotka.de/ref/codeunit/5061-seghistorymanagement/source/#L86) writes [Table 5078 Segment History](https://jonas-paprotka.de/ref/table/5078-segment-history/) DeleteAll
- [92](https://jonas-paprotka.de/ref/codeunit/5061-seghistorymanagement/source/#L92) writes [Table 5097 Segment Criteria Line](https://jonas-paprotka.de/ref/table/5097-segment-criteria-line/) Delete

## Source

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

JOP-AL, 2026-11-20.
