---
id: object/codeunit/10059-ca
type: object
title: Codeunit 10059 "Serv. Event Subscribers NA" (CA)
summary: Codeunit 10059 "Serv. Event Subscribers NA" (CA) in the CA country layer (Microsoft.Service.Document). 11 event subscribers. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - ca layer
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 911600a691b563e9c99a1478984da7a21b3cf0f900badd5ca1463b3c3a3fa0ba
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/NA/BaseApp/Service/Local/ServEventSubscribersNA.Codeunit.al
    title: src/Layers/NA/BaseApp/Service/Local/ServEventSubscribersNA.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/ca
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/12290
object_type: codeunit
object_id: 10059
name: Serv. Event Subscribers NA
namespace: Microsoft.Service.Document
app: Base Application
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
country: CA
counts:
  fields: 0
  procedures: 12
  events: 0
  subscribers: 11
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 10059 "Serv. Event Subscribers NA" (CA)

> Codeunit 10059 "Serv. Event Subscribers NA" (CA) in the CA country layer (Microsoft.Service.Document). 11 event subscribers. Introduced in BC29, still in BC30.

CA country layer · Microsoft.Service.Document · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/NA/BaseApp/Service/Local/ServEventSubscribersNA.Codeunit.al) · facts from BC29

An object of the [CA localization](../../localizations/ca.md), not part of W1.

## Event subscriptions

- OnAfterValidateBillToCustomerNo subscribes to Table "Service Header" OnAfterValidateEvent (Bill-to Customer No.)
- OnAfterCopyCustomerFields subscribes to Table "Service Header" OnAfterCopyCustomerFields
- ServiceCrMemoHeaderOnBeforePrintRecords subscribes to Table "Service Cr.Memo Header" OnBeforePrintRecords
- ServiceInvoiceHeaderOnBeforePrintRecords subscribes to Table "Service Invoice Header" OnBeforePrintRecords
- ServContractManagementOnBeforeCheckCustomer subscribes to Codeunit "ServContractManagement" OnBeforeCheckCustomer
- ServiceContractAccountGroupOnBeforeCheckProdPostingGroups subscribes to Table "Service Contract Account Group" OnBeforeCheckProdPostingGroups
- ServiceHeaderOnBeforeCheckBusPostingGroups subscribes to Table "Service Header" OnBeforeCheckBusPostingGroups
- OnAfterRecordChanged subscribes to Page "Posted Service Inv. - Update" OnAfterRecordChanged
- OnDeleteOnBeforeShowPostedDocsToPrint subscribes to Table "Service Header" OnDeleteOnBeforeShowPostedDocsToPrint
- OnValidateUnitOfMeasureOnAfterAssignUnitofMeasureValue subscribes to Table "Service Line" OnValidateUnitOfMeasureOnAfterAssignUnitofMeasureValue
- OnCreateCustFromTemplateOnBeforeCustInsert subscribes to Codeunit "ServOrderManagement" OnCreateCustFromTemplateOnBeforeCustInsert

## Procedures

1 local procedures, no public ones.

## Recent changes

- 2026-10-06 [#12290 Remove CLEAN27 from Service Management](../../changes/bcapps/12290.md) (main, BC30, refactor)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "Serv. Event Subscribers NA")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.

A CA country object, not part of W1: the default corpus does not have it; `bcatlas_list_countries` shows which countries the atlas has.
