---
id: change/bcapps/10167
type: change
title: "#10167 [Extensibility Request] issue 30240: add event before adding price list lines"
summary: A cancellable event is added before price list line creation so extensions can implement custom logic or replace the standard line creation behavior.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit price list management
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:09:08.956Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: ba7935058478145c4dafb04583ccd4c3d6cf1a24
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10167
    title: "microsoft/BCApps#10167: [Extensibility Request] issue 30240: add event before adding price list lines"
    date: "2026-08-13"
    commit: ba7935058478145c4dafb04583ccd4c3d6cf1a24
    t: null
    quote: Extensions need to replace the standard logic that creates a price list line for an asset when suggested price lines are added.
links:
  learn: []
  objects:
    - object/codeunit/7017
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10167
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10167
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-13T10:04:00Z"
author: AleksandricMarko
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
  - event-request
  - extensibility-enhancement
change_class: code
change_kind: feature
behavior_change: false
breaking: false
files:
  count: 1
  additions: 11
  deletions: 0
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/7017
    page: codeunit/7017
    type: codeunit
    id: 7017
    name: Price List Management
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 638114
systems:
  - development
quote: Extensions need to replace the standard logic that creates a price list line for an asset when suggested price lines are added.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #10167 [Extensibility Request] issue 30240: add event before adding price list lines

> A cancellable event is added before price list line creation so extensions can implement custom logic or replace the standard line creation behavior.

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

## What changed

- New OnBeforeAddLine event added to Price List Management.AddLine procedure
- Event includes relevant price records and an IsHandled parameter
- Allows subscribers to bypass standard line creation
- Enables extensibility for custom asset price list line handling
- Available to country-specific implementations

## AL objects touched

- [Codeunit 7017 "Price List Management"](../../objects/codeunit/7017.md), Base Application: modified

## Context

- Work items: AB#638114
- Labels: Team: SCM, event-request, extensibility-enhancement
- Systems: development
- From the description: "Extensions need to replace the standard logic that creates a price list line for an asset when suggested price lines are added."

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