Codeunit 730 "Copy Item"
Base Application · Microsoft.Inventory.Item
Across versions
- BC23present
- BC24declaration changed
- BC252 procedures removed
- BC261 events added
- BC271 procedures added
- BC284 procedures changed, 1 procedures added
- BC291 events added
- BC30unchanged
Neighbourhood 7 connected objects and pages
Base Application · Microsoft.Inventory.Item · BC23-30 · source at 4e6a307c · 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” 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)+ BC29 (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")+ BC26 (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)+ BC27GetNewItemNo(var NewFirstItemNo: Code[20]; var NewLastItemNo: Code[20])
Plus 24 local procedures.
Triggers
OnRun
Relations
- runs on Table 27 “Item”
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.” (1 call:
ShowNotification → SendNotification) - Page 30 “Item Card” (1 call:
ShowCreatedItems → (object)) - Page 31 “Item List” (1 call:
ShowCreatedItems → (object)) - Page 456 “No. Series” (1 call:
SetTargetItemNo → (object))
Called by
- Codeunit 6472 “Serv. Copy Item” (2 calls:
CopyItemResourceSkills → CopyItemRelatedTableFromRecRef,CopyTroubleshootingSetup → CopyItemRelatedTableFromRecRef)
Recent changes
- 2026-09-08 #10988 [Event Request] Codeunit 730 “Copy Item”: Add price-specific before event (main, BC30, feature)
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Add extended text — possibly related: Item copying with extended text support for special prices and handling instructions. (model-linked)
- Update prices — possibly related: Item copying and price list line management for subscription contract price updates. (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: "Copy Item"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.