---
title: "Codeunit 7017 Price List Management"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/7017-price-list-management/
type: codeunit
id: 7017
name: "Price List Management"
app: "Base Application"
namespace: Microsoft.Pricing.PriceList
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/7017-price-list-management/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 7017 Price List Management

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/7017-price-list-management/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Pricing.PriceList |
| Versions | 17-28 |
| Source file | Pricing/PriceList/PriceListManagement.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| AddLines | (var Record Price List Header) | - | public | 17-28 | - | - |
| AddLines | (var Record Price List Header, Record Price Line Filters) | - | public | 17-28 | - | - |
| CopyLines | (var Record Price List Header) | - | public | 17-28 | - | - |
| CopyLines | (var Record Price List Header, Record Price Line Filters) | - | public | 17-28 | - | - |
| FindDuplicatePrices | (Record Price List Header, Boolean, var Record Duplicate Price Line) | Boolean | public | 17-28 | - | - |
| ResolveDuplicatePrices | (Record Price List Header, var Record Duplicate Price Line) | Boolean | public | 17-28 | - | - |
| CopyLines | (var Record Price List Header, Boolean) | - | public | 18-28 | - | - |
| GetDefaultPriceListCode | (Enum Price Type, Enum Price Source Group, Boolean) | Code[20] | public | 18-28 | - | - |
| DefineDefaultPriceList | (Enum Price Type, Enum Price Source Group) | Code[20] | public | 18-28 | - | - |
| IsAllowedEditingActivePrice | (Enum Price Type) | Boolean | public | 18-28 | - | - |
| SendVerifyLinesNotification | () | - | public | 18-28 | - | - |
| SendVerifyLinesNotification | (Record Price List Header) | - | public | 18-28 | - | - |
| ActivateDraftLines | (Notification) | - | public | 18-28 | - | - |
| ActivateDraftLines | (Record Price List Header) | Boolean | public | 18-28 | - | - |
| ActivateDraftLines | (var Record Price List Line) | - | public | 18-28 | - | - |
| VerifyLines | (var Record Price List Line) | - | public | 18-28 | - | - |
| ResolveDuplicatePrices | (Record Price List Header) | Boolean | public | 18-28 | - | - |
| ResolveDuplicatePrices | (var Record Price List Line) | - | public | 18-28 | - | - |
| SetPriceListsFilters | (var Record Price List Header, Codeunit Price Source List, Enum Price Amount Type) | - | public | 18-28 | - | - |
| SetPriceListLineFilters | (var Record Price List Line, Codeunit Price Source List, Enum Price Amount Type) | - | public | 18-28 | - | - |
| SetPriceListLineFilters | (var Record Price List Line, Record Price Source, Codeunit Price Asset List, Enum Price Amount Type) | Boolean | public | 18-28 | - | - |
| FindIfPriceExists | () | - | public | 18-28 | - | - |
| IsPriceFound | () | Boolean | public | 18-28 | - | - |
| ImplementNewPrices | (var Record Price Worksheet Line) | - | public | 18-28 | - | - |
| VerifySourceGroupInLines | () | Boolean | public | 18-28 | - | - |
| UpdateSourceGroupInLines | (Notification) | - | public | 18-28 | - | - |
| FindDuplicatePrice | (Record Price List Line) | Boolean | public | 19-28 | - | - |
| AdjustAmount | (var Decimal, Record Price Line Filters) | - | public | 21-28 | - | - |
| FindDuplicatePrices | (Record Price List Header, var Record Price List Line, Boolean, var Record Duplicate Price Line) | Boolean | public | 23-28 | - | - |
| ActivateDraftLines | (Notification, Boolean) | - | public | 23-28 | - | - |
| ActivateDraftLines | (Record Price List Header, Boolean) | Boolean | public | 23-28 | - | - |
| SetHeadersFilters | (Record Price List Line, var Record Price List Line) | - | public | 24-28 | - | - |
| SetAssetFilters | (Record Price List Line, var Record Price List Line) | - | public | 24-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeFindDuplicatePriceListLine | (Record Price List Line, var Record Price List Line) | 17-27 | - | - |
| Integration event | OnBuildAssetFiltersOnBeforeFindLines | (var Record Price List Line, Record Price Asset) | 18-28 | - | - |
| Integration event | OnBuildSourceFiltersOnBeforeFindLines | (var Record Price List Line, Record Price Source) | 18-28 | - | - |
| Integration event | OnAddLineOnAfterPopulatePriceListLineFields | (var Record Price List Line, Record Price List Header, Record Price Asset, Record Price Line Filters) | 19-28 | - | - |
| Integration event | OnAfterBuildSourceFilters | (var Record Price Source, var Text) | 19-28 | - | - |
| Integration event | OnAfterImplementNewPrice | (var Record Price Worksheet Line, var Record Price List Line, var Boolean) | 19-28 | - | - |
| Integration event | OnCopyToWorksheetLineOnBeforeInsert | (var Record Price Worksheet Line, Record Price List Line) | 19-28 | - | - |
| Integration event | OnCopyLinesOnAfterFromPriceListLineSetFilters | (var Record Price List Line, Record Price Line Filters) | 19-28 | - | - |
| Integration event | OnCopyLineOnAfterAdjustAmounts | (var Record Price List Line, Record Price Line Filters, Record Price List Line, Record Price List Header) | 19-21 | - | - |
| Integration event | OnActivateDraftLinesOnAfterPriceListLineModifyAll | (Record Price List Header) | 20 | - | - |
| Integration event | OnBeforeImplementNewPrice | (var Record Price Worksheet Line) | 20-23 | - | - |
| Integration event | OnCopyLineOnAfterInsertFromPriceListLine | (Record Price List Line, var Record Price List Line) | 20-28 | - | - |
| Integration event | OnActivateDraftLinesOnAfterPriceListLineModifyAll | (var Record Price List Header, var Boolean) | 21-28 | - | - |
| Integration event | OnAfterActivateDraftLines | (Record Price List Line) | 21-28 | - | - |
| Integration event | OnAfterIsAllowedEditingActivePrice | (Enum Price Type, var Boolean) | 21-28 | - | - |
| Integration event | OnCopyLineOnAfterAdjustAmounts | (var Record Price List Line, Record Price Line Filters, var Record Price List Line, Record Price List Header) | 22-28 | - | - |
| Integration event | OnBeforeImplementNewPrices | (var Record Price Worksheet Line) | 23-28 | - | - |
| Integration event | OnBeforeImplementNewPrice | (var Record Price Worksheet Line, var Boolean, var Boolean) | 24-28 | - | - |
| Integration event | OnAfterSetHeadersFilters | (Record Price List Line, var Record Price List Line) | 24-28 | - | - |
| Integration event | OnAfterSetAssetFilters | (Record Price List Line, var Record Price List Line) | 24-28 | - | - |
| Integration event | OnBeforeResolveDuplicatePrices | (Record Price List Header, var Boolean, var Boolean) | 24-28 | - | - |
| Integration event | OnAfterClearSourceFilters | (var Record Price List Line) | 24-28 | - | - |
| Integration event | OnAfterClearAssetFilters | (var Record Price List Line) | 24-28 | - | - |
| Integration event | OnCheckIfPriceListLineMarkingIsNeededOnBeforeFindLines | (var Record Price List Line, var Record Price Asset) | 24-28 | - | - |
| Integration event | OnBeforeAddLine | (Record Price List Header, Record Price Asset, Record Price Line Filters, var Boolean) | 28 | - | - |
| Integration event | OnBeforeFindDuplicatePriceListLine | (Record Price List Line, var Record Price List Line, Boolean, Boolean) | 28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
