---
id: change/bcapps/9443
type: change
title: "#9443 [Extensibility Request] issue 30222: add handled event before RecreatePurchLines in Pay-to Vendor No. validation"
summary: A new handled integration event OnValidatePayToVendorNoOnBeforeRecreatePurchLines was added to the Pay-to Vendor No. field validation in Purchase Header, allowing extensions to take ownership of purchase line recreation logic instead of being forced to replicate the entire validation trigger.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - table purchase header
system: purchasing
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:11:27.500Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: e51e0d10ac9a4449fd54edc8134f1393b273aabb
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9443
    title: "microsoft/BCApps#9443: [Extensibility Request] issue 30222: add handled event before RecreatePurchLines in Pay-to Vendor No. validation"
    date: "2026-07-24"
    commit: e51e0d10ac9a4449fd54edc8134f1393b273aabb
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/table/38
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9443
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9443
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-24T07:38:56Z"
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: 14
  additions: 154
  deletions: 28
  al: 14
apps:
  - Base Application
objects_touched:
  - key: table/38
    page: table/38
    type: table
    id: 38
    name: Purchase Header
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 641640
systems:
  - purchasing
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9443 [Extensibility Request] issue 30222: add handled event before RecreatePurchLines in Pay-to Vendor No. validation

> A new handled integration event OnValidatePayToVendorNoOnBeforeRecreatePurchLines was added to the Pay-to Vendor No. field validation in Purchase Header, allowing extensions to take ownership of purchase line recreation logic instead of being forced to replicate the entire validation trigger.

[Pull request](https://github.com/microsoft/BCApps/pull/9443) · merged into `main` (BC30) on 2026-07-24 by AleksandricMarko · 14 files (+154 -28), 14 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- New integration event raised before RecreatePurchLines call in Pay-to Vendor No. field validation
- Event includes IsHandled flag that allows subscribers to skip the standard recreation logic
- Exposes Rec and xRec parameters for subscribers to access purchase header data
- Applied across all localization layers (W1, APAC, BE, CH, DACH, ES, FI, GB, IT, NA, NL, NO, RU, SE)
- Enables custom purchase line recreation logic that preserves extension-specific information

## AL objects touched

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

## Context

- Work items: AB#641640
- Labels: Team: SCM, event-request
- Systems: purchasing

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