---
id: object/codeunit/730
type: object
title: Codeunit 730 "Copy Item"
summary: Codeunit 730 "Copy Item" in Base Application (Microsoft.Inventory.Item). 7 public procedures, 12 events. Present since at least BC23, still in BC30, changed in BC24-29.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "29"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 4594de70c08ae789a0030109c7848d7fdb1e13700dd27ef0b739bd6bc287f440
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Inventory/Item/CopyItem.Codeunit.al
    title: src/Layers/W1/BaseApp/Inventory/Item/CopyItem.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/10988
object_type: codeunit
object_id: 730
name: Copy Item
namespace: Microsoft.Inventory.Item
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 43
  events: 12
  subscribers: 0
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 1
  calls: 4
  called_by: 1
  implements: 0
---

# Codeunit 730 "Copy Item"

> Codeunit 730 "Copy Item" in Base Application (Microsoft.Inventory.Item). 7 public procedures, 12 events. Present since at least BC23, still in BC30, changed in BC24-29.

Base Application · Microsoft.Inventory.Item · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Inventory/Item/CopyItem.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| TableNo | Item |

## Events published

- `OnAfterCopyExtendedTexts(var SourceItem: Record Item; var TargetItem: Record Item)` (integration)
- `OnAfterCopyItem(var CopyItemBuffer: Record "Copy Item Buffer"; SourceItem: Record Item; var TargetItem: Record Item)` (integration)
  - subscribers: [Codeunit 6472 "Serv. Copy Item"](../codeunit/6472.md) OnAfterCopyItem
- `OnBeforeCopyItem(SourceItem: Record Item; var TargetItem: Record Item; CopyCounter: Integer; var CopyItemBuffer: Record "Copy Item Buffer")` (integration)
- `OnBeforeCopyItemPriceListLines(FromItemNo: Code[20]; ToItemNo: Code[20]; var IsHandled: Boolean)` (integration)
- `OnBeforeCopyItemPriceListLines2(FromItemNo: Code[20]; ToItemNo: Code[20]; PriceType: Enum "Price Type"; AmountType: Enum "Price Amount Type"; var IsHandled: Boolean)` (integration)
- `OnBeforeOnRun(Item: Record Item; var FirstItemNo: Code[20]; var LastItemNo: Code[20]; var IsItemCopied: Boolean; var IsHandled: Boolean)` (integration)
- `OnRunOnAfterItemCopied(var CopyItemBuffer: Record "Copy Item Buffer")` (integration)
- `OnBeforeInitSeries(var Item: Record Item; var InventorySetup: Record "Inventory Setup")` (integration)
- `OnBeforeCopyItemVariants(var TempCopyItemBuffer: Record "Copy Item Buffer" temporary; FromItemNo: Code[20]; ToItemNo: Code[20]; var IsHandled: Boolean)` (integration)
- `OnCopyItemPriceListLinesOnAfterPriceListLineSetFilters(var PriceListLine: Record "Price List Line")` (integration)
- `OnCopyItemOnBeforeTargetItemInsert(SourceItem: Record Item; var TargetItem: Record Item; CopyCounter: Integer; var CopyItemBuffer: Record "Copy Item Buffer")` (integration)
- `OnCopyItemPriceListLinesOnBeforeInsertNewPriceListLine(var NewPriceListLine: Record "Price List Line"; PriceListLine: Record "Price List Line")` (integration)

## Procedures

- `DoCopyItem()`
- `SetCopyItemBuffer(NewCopyItemBuffer: Record "Copy Item Buffer" temporary)`
- `CopyItem(CopyCounter: Integer)`
- `CopyItemRelatedTable(TableId: Integer; FieldNo: Integer; FromItemNo: Code[20]; ToItemNo: Code[20])`
- `CopyItemRelatedTableFromRecRef(var SourceRecRef: RecordRef; FieldNo: Integer; FromItemNo: Code[20]; ToItemNo: Code[20])`
- `ShowCreatedItems(var ItemCopiedNotification: Notification)`
- `GetNewItemNo(var NewFirstItemNo: Code[20]; var NewLastItemNo: Code[20])`

Plus 24 local procedures.

## Triggers

OnRun

## Relations

- runs on [Table 27 "Item"](../table/27.md)

## 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 1511 "Notification Lifecycle Mgt."](../codeunit/1511.md) (1 call: `ShowNotification → SendNotification`)
- [Page 30 "Item Card"](../page/30.md) (1 call: `ShowCreatedItems → (object)`)
- [Page 31 "Item List"](../page/31.md) (1 call: `ShowCreatedItems → (object)`)
- [Page 456 "No. Series"](../page/456.md) (1 call: `SetTargetItemNo → (object)`)

## Called by

- [Codeunit 6472 "Serv. Copy Item"](../codeunit/6472.md) (2 calls: `CopyItemResourceSkills → CopyItemRelatedTableFromRecRef`, `CopyTroubleshootingSetup → CopyItemRelatedTableFromRecRef`)

## Recent changes

- 2026-09-08 [#10988 [Event Request] Codeunit 730 "Copy Item": Add price-specific before event](../../changes/bcapps/10988.md) (main, BC30, feature)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24-29

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: "Copy Item")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
