---
id: change/bcapps/10520
type: change
title: "#10520 [Extensibility Request] issue 29640: use document type enum in blocked customer event"
summary: Blocked customer check event now passes the extensible Gen. Journal Document Type enum value instead of converting to an option integer, preserving document type extensibility.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - table customer
system: sales
review:
  state: reviewed
  by: opus
  at: "2026-10-16T01:17:25.385Z"
  flags: []
generated:
  at: "2026-10-24T01:02:25.817Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: d6985b37b7745947481c663d8a5cc60e9e3a4ef8
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10520
    title: "microsoft/BCApps#10520: [Extensibility Request] issue 29640: use document type enum in blocked customer event"
    date: "2026-10-13"
    commit: d6985b37b7745947481c663d8a5cc60e9e3a4ef8
    t: null
    quote: Extensions need the blocked-customer check to preserve extensible general journal document type values.
links:
  learn: []
  objects:
    - object/table/18
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-event-types
      title: Event types
      label: possibly related
      why: Documents event types and how to publish/subscribe to events, relevant to blocking customer event implementation.
      by: model
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-extensible-enums
      title: Extensible Enums
      label: possibly related
      why: Documents extensible enums in AL, directly relevant to using document type enum in customer blocking event.
      by: model
number: 10520
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10520
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-13T12:54:29Z"
author: AleksandricMarko
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
  - event-request
change_class: code
change_kind: feature
behavior_change: false
breaking: true
files:
  count: 11
  additions: 143
  deletions: 11
  al: 11
apps:
  - Base Application
objects_touched:
  - key: table/18
    page: table/18
    type: table
    id: 18
    name: Customer
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 620150
systems:
  - sales
quote: Extensions need the blocked-customer check to preserve extensible general journal document type values.
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #10520 [Extensibility Request] issue 29640: use document type enum in blocked customer event

> Blocked customer check event now passes the extensible Gen. Journal Document Type enum value instead of converting to an option integer, preserving document type extensibility.

[Pull request](https://github.com/microsoft/BCApps/pull/10520) · merged into `main` (BC30) on 2026-10-13 by AleksandricMarko · 11 files (+143 -11), 11 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- Changed OnBeforeCheckBlockedCust event parameter from option to Gen. Journal Document Type enum
- Removed integer conversion to preserve enum extensibility for extensions
- Applied to W1 and all 10 country layers consistently
- Enables extensions to use custom document type values without reduction to integer
- Breaking: existing extensions can stop compiling or working.

## AL objects touched

- [Table 18 "Customer"](../../objects/table/18.md), Base Application: modified

## Context

- Work items: AB#620150
- Labels: Team: Finance, event-request
- Systems: sales
- From the description: "Extensions need the blocked-customer check to preserve extensible general journal document type values."

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Event types](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-event-types) — possibly related: Documents event types and how to publish/subscribe to events, relevant to blocking customer event implementation. (model-linked)
- [Extensible Enums](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-extensible-enums) — possibly related: Documents extensible enums in AL, directly relevant to using document type enum in customer blocking event. (model-linked)

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).
