---
title: "Codeunit 5819 Undo Service Consumption Line"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/5819-undo-service-consumption-line/
type: codeunit
id: 5819
name: "Undo Service Consumption Line"
app: "Base Application"
namespace: Microsoft.Service.History
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/5819-undo-service-consumption-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."
---

# Codeunit 5819 Undo Service Consumption Line

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/5819-undo-service-consumption-line/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Service.History |
| Versions | 17-28 |
| Source file | Service/History/UndoServiceConsumptionLine.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| SetHideDialog | (Boolean) | - | public | 17-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterCode | (var Record Service Shipment Line) | 17-28 | - | - |
| Integration event | OnAfterCopyItemJnlLineFromServShpt | (var Record Item Journal Line, Record Service Shipment Header, Record Service Shipment Line) | 17-28 | - | - |
| Integration event | OnAfterUpdateOrderLine | (var Record Service Line, var Record Service Shipment Line) | 17-28 | - | - |
| Integration event | OnBeforeCheckServShptLine | (var Record Service Shipment Line, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforePostItemJnlLineWithIT | (var Record Item Journal Line) | 17-20 | - | - |
| Integration event | OnBeforeReservEntryInsert | (var Record Reservation Entry, var Record Item Ledger Entry) | 17-28 | - | - |
| Integration event | OnBeforeTempGlobalItemEntryRelationInsert | (var Record Item Entry Relation, var Record Item Ledger Entry) | 17-28 | - | - |
| Integration event | OnBeforeOnRun | (var Record Service Shipment Line, var Boolean) | 17-28 | - | - |
| Integration event | OnCodeOnAfterUpdateServShptLine | (var Record Service Shipment Line) | 20-28 | - | - |
| Integration event | OnBeforePostItemJnlLineWithIT | (var Record Item Journal Line, var Record Service Shipment Line) | 21-28 | - | - |
| Integration event | OnBeforeInsertCorrectiveShipmentLine | (var Record Service Shipment Line) | 21-28 | - | - |
| Integration event | OnBeforePostResourceJnlLine | (var Record Service Shipment Line, var Boolean) | 21-28 | - | - |
| Integration event | OnItemJnlPostLineOnAfteItemJnlPostLineOnBeforeExit | (var Record Item Journal Line, var Record Service Shipment Line) | 21-28 | - | - |
| Integration event | OnPostResourceJnlLineOnBeforeResJnlPostLine | (var Record Res. Journal Line, var Record Service Shipment Header, var Record Service Shipment Line) | 21-28 | - | - |
| Integration event | OnInsertCorrectiveShipmentLineOnBeforeInsert | (var Record Service Shipment Line, Record Service Shipment Line) | 24-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.
