Codeunit 7017 "Price List Management"
Base Application · Microsoft.Pricing.PriceList
Across versions
- BC23present
- BC247 events added, 2 procedures changed
- BC25-27unchanged
- BC282 events added, 1 events removed
- BC292 procedures added, 1 procedures removed
- BC30unchanged
Neighbourhood 20 connected objects and pages
Base Application · Microsoft.Pricing.PriceList · BC23-30 · source at 4e6a307c · facts from BC29
Events published
OnAddLineOnAfterPopulatePriceListLineFields(var PriceListLine: Record "Price List Line"; ToPriceListHeader: Record "Price List Header"; PriceAsset: Record "Price Asset"; PriceLineFilters: Record "Price Line Filters")(integration)OnBeforeAddLine(PriceListHeader: Record "Price List Header"; PriceAsset: Record "Price Asset"; PriceLineFilters: Record "Price Line Filters"; var IsHandled: Boolean)+ BC28 (integration)OnActivateDraftLinesOnAfterPriceListLineModifyAll(var PriceListHeader: Record "Price List Header"; var SkipMessage: Boolean)(integration)OnAfterActivateDraftLines(PriceListLine: Record "Price List Line")(integration)OnAfterBuildSourceFilters(var PriceSource: Record "Price Source"; var SourceFilter: array[3] of Text)(integration)OnAfterImplementNewPrice(var PriceWorksheetLine: Record "Price Worksheet Line"; var PriceListLine: Record "Price List Line"; var Implemented: Boolean)(integration)OnAfterIsAllowedEditingActivePrice(PriceType: Enum "Price Type"; var Result: Boolean)(integration)OnBeforeFindDuplicatePriceListLine(PriceListLine: Record "Price List Line"; var DuplicatePriceListLine: Record "Price List Line"; AsLineDefaults: Boolean; SearchInside: Boolean)+ BC28 − BC28 (integration)OnBuildAssetFiltersOnBeforeFindLines(var PriceListLine: Record "Price List Line"; PriceAsset: Record "Price Asset")(integration)OnBuildSourceFiltersOnBeforeFindLines(var PriceListLine: Record "Price List Line"; PriceSource: Record "Price Source")(integration)OnCopyToWorksheetLineOnBeforeInsert(var PriceWorksheetLine: Record "Price Worksheet Line"; FromPriceListLine: Record "Price List Line")(integration)OnCopyLinesOnAfterFromPriceListLineSetFilters(var PriceListLine: Record "Price List Line"; PriceLineFilters: Record "Price Line Filters")(integration)OnCopyLineOnAfterAdjustAmounts(var ToPriceListLine: Record "Price List Line"; PriceLineFilters: Record "Price Line Filters"; var FromPriceListLine: Record "Price List Line"; ToPriceListHeader: Record "Price List Header")(integration)OnBeforeImplementNewPrice(var PriceWorksheetLine: Record "Price Worksheet Line"; var Implemented: Boolean; var IsHandled: Boolean)+ BC24 − BC24 (integration)OnCopyLineOnAfterInsertFromPriceListLine(FromPriceListLine: Record "Price List Line"; var ToPriceListLine: Record "Price List Line")(integration)OnBeforeImplementNewPrices(var PriceWorksheetLine: Record "Price Worksheet Line")(integration)OnAfterSetHeadersFilters(PriceListLine: Record "Price List Line"; var DuplicatePriceListLine: Record "Price List Line")+ BC24 (integration)OnAfterSetAssetFilters(PriceListLine: Record "Price List Line"; var DuplicatePriceListLine: Record "Price List Line")+ BC24 (integration)OnBeforeResolveDuplicatePrices(PriceListHeader: Record "Price List Header"; var Resolved: Boolean; var IsHandled: Boolean)+ BC24 (integration)OnAfterClearSourceFilters(var PriceListLine: Record "Price List Line")+ BC24 (integration)OnAfterClearAssetFilters(var PriceListLine: Record "Price List Line")+ BC24 (integration)OnCheckIfPriceListLineMarkingIsNeededOnBeforeFindLines(var PriceListLine: Record "Price List Line"; var PriceAsset: Record "Price Asset")+ BC24 (integration)
Event subscriptions
- OnAfterCopyToPriceSource subscribes to Table “Price List Line” OnBeforeModifyEvent
Procedures
AddLines(var PriceListHeader: Record "Price List Header")AddLines(var ToPriceListHeader: Record "Price List Header"; PriceLineFilters: Record "Price Line Filters")AdjustAmount(var Price: Decimal; PriceLineFilters: Record "Price Line Filters")CopyLines(var ToPriceListHeader: Record "Price List Header")CopyLines(var ToPriceListHeader: Record "Price List Header"; UpdateMultiplePriceLists: Boolean)CopyLines(var ToPriceListHeader: Record "Price List Header"; PriceLineFilters: Record "Price Line Filters")FindDuplicatePrice(PriceListLine: Record "Price List Line"): BooleanFindDuplicatePrices(PriceListHeader: Record "Price List Header"; SearchInside: Boolean; var DuplicatePriceLine: Record "Duplicate Price Line"): BooleanFindDuplicatePrices(PriceListHeader: Record "Price List Header"; var PriceListLine: Record "Price List Line"; SearchInside: Boolean; var DuplicatePriceLine: Record "Duplicate Price Line"): BooleanGetDefaultPriceListCode(PriceType: Enum "Price Type"; SourceGroup: Enum "Price Source Group"; FailIfBlank: Boolean): Code[20]DefineDefaultPriceList(PriceType: Enum "Price Type"; SourceGroup: Enum "Price Source Group"): Code[20]IsAllowedEditingActivePrice(PriceType: Enum "Price Type"): BooleanSendVerifyLinesNotification()SendVerifyLinesNotification(PriceListHeader: Record "Price List Header")ActivateDraftLines(VerifyLinesNotification: Notification)ActivateDraftLines(VerifyLinesNotification: Notification; SkipMessage: Boolean)ActivateDraftLines(PriceListHeader: Record "Price List Header"): BooleanActivateDraftLines(PriceListHeader: Record "Price List Header"; SkipMessage: Boolean): BooleanActivateDraftLines(var PriceListLine: Record "Price List Line")VerifyLines(var PriceListLine: Record "Price List Line")ResolveDuplicatePrices(PriceListHeader: Record "Price List Header"): BooleanResolveDuplicatePrices(var PriceListLine: Record "Price List Line")SetPriceListsFilters(var PriceListHeader: Record "Price List Header"; PriceSourceList: Codeunit "Price Source List"; AmountType: Enum "Price Amount Type")SetPriceListLineFilters(var PriceListLine: Record "Price List Line"; PriceSourceList: Codeunit "Price Source List"; AmountType: Enum "Price Amount Type")SetPriceListLineFilters(var PriceListLine: Record "Price List Line"; PriceSource: Record "Price Source"; PriceAssetList: Codeunit "Price Asset List"; AmountType: Enum "Price Amount Type"): BooleanFindIfPriceExists()IsPriceFound(): BooleanSetHeadersFilters(PriceListLine: Record "Price List Line"; var DuplicatePriceListLine: Record "Price List Line")Δ BC24SetAssetFilters(PriceListLine: Record "Price List Line"; var DuplicatePriceListLine: Record "Price List Line")Δ BC24ResolveDuplicatePrices(PriceListHeader: Record "Price List Header"; var DuplicatePriceLine: Record "Duplicate Price Line"): BooleanImplementNewPrices(var PriceWorksheetLine: Record "Price Worksheet Line")VerifySourceGroupInLines(): BooleanUpdateSourceGroupInLines(UpgradeNotification: Notification)
Plus 28 local procedures.
Calls
From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.
- Codeunit 8703 “Feature Telemetry” (5 calls:
CreateDefaultPriceList → LogUptake,CreateDefaultPriceList → LogUsage,DefineDefaultPriceList → LogUptake, …) - Codeunit 7007 “Price Asset List” (4 calls:
BuildAssetFilters → First,BuildAssetFilters → Next,CheckIfPriceListLineMarkingIsNeeded → First, …) - Codeunit 7011 “Price Source List” (4 calls:
BuildSourceFilters → First,BuildSourceFilters → Next,SetPriceListLineFilters → GetPriceType, …) - Codeunit 7001 “Price Calculation Mgt.” (3 calls:
CreateDefaultPriceList → GetFeatureTelemetryName,DefineDefaultPriceList → GetFeatureTelemetryName,ImplementNewPrices → GetFeatureTelemetryName) - Codeunit 9998 “Upgrade Tag Definitions” (2 calls:
VerifySourceGroupInLines → GetPriceSourceGroupFixedUpgradeTag,VerifySourceGroupInLines → GetSyncPriceListLineStatusUpgradeTag) - Codeunit 1511 “Notification Lifecycle Mgt.” (1 call:
VerifySourceGroupInLines → SendNotification) - Codeunit 9999 “Upgrade Tag” (1 call:
VerifySourceGroupInLines → HasUpgradeTag) - Page 673 “Job Queue Entry Card” (1 call:
UpdateSourceGroupInLines → (object))
Called by
- Page 7016 “Sales Price List” (3 calls:
OnAfterGetCurrRecord → SendVerifyLinesNotification,OnOpenPage → VerifySourceGroupInLines,OnQueryClosePage → SendVerifyLinesNotification) - Page 7018 “Purchase Price List” (3 calls:
OnAfterGetCurrRecord → SendVerifyLinesNotification,OnOpenPage → VerifySourceGroupInLines,OnQueryClosePage → SendVerifyLinesNotification) - Page 7022 “Price Worksheet” (3 calls:
OnOpenPage → VerifySourceGroupInLines,SetDefaultPriceListCode → GetDefaultPriceListCode,SetDefaultPriceListCode → IsAllowedEditingActivePrice) - Table 7000 “Price List Header” (3 calls:
IsAllowedEditingActivePrice → IsAllowedEditingActivePrice,UpdateStatus → ResolveDuplicatePrices,UpdateStatus → VerifyLines) - Codeunit 7009 “CopyFromToPriceListLine” (2 calls:
InitLineNo → DefineDefaultPriceList,SetPriceListCode → GetDefaultPriceListCode) - Table 7022 “Price Worksheet Line” (2 calls:
IsAllowedEditingActivePrice → IsAllowedEditingActivePrice,OnInsert → GetDefaultPriceListCode) - Codeunit 104000 “Upgrade - BaseApp” (1 call:
InsertPriceListLine → FindDuplicatePrice) - Codeunit 7006 “Price Helper - V16” (1 call:
ConfirmEditingActivePriceList → IsAllowedEditingActivePrice) - Codeunit 7018 “Price UX Management” (1 call:
SetPriceListLineFilters → SetPriceListLineFilters) - Codeunit 7049 “Feature - Price Calculation” (1 call:
DefineDefaultPriceList → DefineDefaultPriceList) - Page 7005 “Price List Line Review” (1 call:
OnQueryClosePage → SendVerifyLinesNotification) - Table 7001 “Price List Line” (1 call:
IsAllowedEditingActivePrice → IsAllowedEditingActivePrice)
Recent changes
- 2026-11-26 #13786 [29.X]-Sales/Purchase Price List activation allows Duplicate Lines when the Price List is Inactive. (releases/29.x, BC29, fix)
- 2026-11-10 #13739 [Master]-Sales/Purchase Price List activation allows Duplicate Lines when the Price List is Inactive. (main, BC30, fix)
- 2026-08-13 #10167 [Extensibility Request] issue 30240: add event before adding price list lines (main, BC30, feature)
- 2026-07-22 #9571 [Master]-Opening price list from Customer Card is extremely slow on large datasets (~220s) due to AddAllSourceType call (main, BC30, performance)
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Set up prices and discounts — possibly related: Documents price list management and setup of prices and discounts. (model-linked)
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). The call sections above are our own, per object, from the BC29 call graph. 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: "Price List Management"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.