---
id: change/bcapps/10422
type: change
title: "#10422 [Extensibility Request] issue 30423: expose previous service header"
summary: Service Header event subscribers now receive the previous record state through the OnValidateShipToCodeOnBeforeDeleteLines event to track custom field changes during line deletion.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - table service header
system: service
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:07:26.119Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: e555f1c48fcaff1e88315196a1a4f4c16e9cb5e1
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10422
    title: "microsoft/BCApps#10422: [Extensibility Request] issue 30423: expose previous service header"
    date: "2026-08-28"
    commit: e555f1c48fcaff1e88315196a1a4f4c16e9cb5e1
    t: null
    quote: passes the previous Service Header state through the existing extensibility event
links:
  learn: []
  objects:
    - object/table/5900
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10422
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10422
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-28T08:58:21Z"
author: AleksandricMarko
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
  - event-request
change_class: code
change_kind: feature
behavior_change: false
breaking: false
files:
  count: 1
  additions: 2
  deletions: 2
  al: 1
apps:
  - Base Application
objects_touched:
  - key: table/5900
    page: table/5900
    type: table
    id: 5900
    name: Service Header
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 647077
systems:
  - service
quote: passes the previous Service Header state through the existing extensibility event
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #10422 [Extensibility Request] issue 30423: expose previous service header

> Service Header event subscribers now receive the previous record state through the OnValidateShipToCodeOnBeforeDeleteLines event to track custom field changes during line deletion.

[Pull request](https://github.com/microsoft/BCApps/pull/10422) · merged into `main` (BC30) on 2026-08-28 by AleksandricMarko · 1 file (+2 -2), 1 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- OnValidateShipToCodeOnBeforeDeleteLines event now passes the previous Service Header record (xRec)
- Allows subscribers to detect custom field changes before handling line deletion
- No change to existing parameter order, maintaining backward compatibility
- Addresses extensibility need for service document processing

## AL objects touched

- [Table 5900 "Service Header"](../../objects/table/5900.md), Base Application: modified

## Context

- Work items: AB#647077
- Labels: Team: SCM, event-request
- Systems: service
- From the description: "passes the previous Service Header state through the existing extensibility event"

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
