---
title: "Codeunit 7009 CopyFromToPriceListLine"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/7009-copyfromtopricelistline/
type: codeunit
id: 7009
name: "CopyFromToPriceListLine"
app: "Base Application"
namespace: Microsoft.Pricing.PriceList
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/7009-copyfromtopricelistline/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 7009 CopyFromToPriceListLine

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/7009-copyfromtopricelistline/

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

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| SetGenerateHeader | () | - | public | 17-28 | - | - |
| CopyFrom | (var Record Sales Price, var Record Price List Line) | - | public | 17-28 | - | - |
| CopyFrom | (var Record Sales Line Discount, var Record Price List Line) | - | public | 17-28 | - | - |
| CopyTo | (var Record Sales Price, var Record Price List Line) | Boolean | public | 17-28 | - | - |
| CopyTo | (var Record Sales Line Discount, var Record Price List Line) | Boolean | public | 17-28 | - | - |
| CopyFrom | (var Record Job Item Price, var Record Price List Line) | - | public | 17-28 | - | - |
| CopyFrom | (var Record Job G/L Account Price, var Record Price List Line) | - | public | 17-28 | - | - |
| CopyFrom | (var Record Job Resource Price, var Record Price List Line) | - | public | 17-28 | - | - |
| CopyFrom | (var Record Resource Cost, var Record Price List Line) | - | public | 17-28 | - | - |
| CopyFrom | (var Record Resource Price, var Record Price List Line) | - | public | 17-28 | - | - |
| CopyFrom | (var Record Purchase Price, var Record Price List Line) | - | public | 17-28 | - | - |
| CopyFrom | (var Record Purchase Line Discount, var Record Price List Line) | - | public | 17-28 | - | - |
| InitLineNo | (var Record Price List Line) | - | public | 17-28 | - | - |
| SetGenerateHeader | (Boolean) | - | public | 18-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeFindHeader | (Record Price List Line, var Record Price List Header) | 17-28 | - | - |
| Integration event | OnBeforeInsertHeader | (Record Price List Line, var Record Price List Header) | 17-28 | - | - |
| Integration event | OnCopyFromPurchLineDiscount | (Record Purchase Line Discount, var Record Price List Line) | 17-28 | - | - |
| Integration event | OnCopyFromPurchasePrice | (Record Purchase Price, var Record Price List Line) | 17-28 | - | - |
| Integration event | OnCopyFromResourceCost | (Record Resource Cost, var Record Price List Line) | 17-28 | - | - |
| Integration event | OnCopyFromResourcePrice | (Record Resource Price, var Record Price List Line) | 17-28 | - | - |
| Integration event | OnCopyFromJobItemPrice | (var Record Job Item Price, var Record Price List Line) | 17-28 | - | - |
| Integration event | OnCopyFromJobGLAccountPrice | (var Record Job G/L Account Price, var Record Price List Line) | 17-28 | - | - |
| Integration event | OnCopyFromJobResourcePrice | (var Record Job Resource Price, var Record Price List Line) | 17-28 | - | - |
| Integration event | OnCopyFromSalesPrice | (var Record Sales Price, var Record Price List Line) | 17-28 | - | - |
| Integration event | OnCopyToSalesPrice | (var Record Sales Price, var Record Price List Line) | 17-28 | - | - |
| Integration event | OnCopyFromSalesLineDiscount | (var Record Sales Line Discount, var Record Price List Line) | 17-28 | - | - |
| Integration event | OnCopyToSalesLineDiscount | (var Record Sales Line Discount, var Record Price List Line) | 17-28 | - | - |
| Integration event | OnAfterInitLineNo | (var Record Price List Line) | 22-28 | - | - |
| Integration event | OnBeforeInsertPriceListLine | (var Record Price List Line) | 24-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.
