Codeunit "Copy Item"

ID 730
Namespace: Microsoft.Inventory.Item

Properties

Name Value
TableNo Table Microsoft.Inventory.Item.Item

Methods

DoCopyItem

procedure DoCopyItem()

SetCopyItemBuffer

procedure SetCopyItemBuffer(NewCopyItemBuffer: Record "Copy Item Buffer" temporary)

Parameters

Name Type Description
NewCopyItemBuffer Table Microsoft.Inventory.Item."Copy Item Buffer"

CopyItem

procedure CopyItem(CopyCounter: Integer)

Parameters

Name Type Description
CopyCounter Integer

CopyItemRelatedTable

procedure CopyItemRelatedTable(TableId: Integer, FieldNo: Integer, FromItemNo: Code[20], ToItemNo: Code[20])

Parameters

Name Type Description
TableId Integer
FieldNo Integer
FromItemNo Code[20]
ToItemNo Code[20]

CopyItemRelatedTableFromRecRef

procedure CopyItemRelatedTableFromRecRef(var SourceRecRef: RecordRef, FieldNo: Integer, FromItemNo: Code[20], ToItemNo: Code[20])

Parameters

Name Type Description
SourceRecRef RecordRef
FieldNo Integer
FromItemNo Code[20]
ToItemNo Code[20]

ShowCreatedItems

procedure ShowCreatedItems(var ItemCopiedNotification: Notification)

Parameters

Name Type Description
ItemCopiedNotification Notification

GetNewItemNo

procedure GetNewItemNo(var NewFirstItemNo: Code[20], var NewLastItemNo: Code[20])

Parameters

Name Type Description
NewFirstItemNo Code[20]
NewLastItemNo Code[20]

Events

OnAfterCopyExtendedTexts

[IntegrationEvent(False,False)]
local procedure OnAfterCopyExtendedTexts(var SourceItem: Record Item, var TargetItem: Record Item)

Parameters

Name Type Description
SourceItem Table Microsoft.Inventory.Item.Item
TargetItem Table Microsoft.Inventory.Item.Item

OnAfterCopyItem

[IntegrationEvent(False,False)]
local procedure OnAfterCopyItem(var CopyItemBuffer: Record "Copy Item Buffer", SourceItem: Record Item, var TargetItem: Record Item)

Parameters

Name Type Description
CopyItemBuffer Table Microsoft.Inventory.Item."Copy Item Buffer"
SourceItem Table Microsoft.Inventory.Item.Item
TargetItem Table Microsoft.Inventory.Item.Item

OnBeforeCopyItem

[IntegrationEvent(False,False)]
local procedure OnBeforeCopyItem(SourceItem: Record Item, var TargetItem: Record Item, CopyCounter: Integer, var CopyItemBuffer: Record "Copy Item Buffer")

Parameters

Name Type Description
SourceItem Table Microsoft.Inventory.Item.Item
TargetItem Table Microsoft.Inventory.Item.Item
CopyCounter Integer
CopyItemBuffer Table Microsoft.Inventory.Item."Copy Item Buffer"

OnBeforeCopyItemPriceListLines

[IntegrationEvent(False,False)]
local procedure OnBeforeCopyItemPriceListLines(FromItemNo: Code[20], ToItemNo: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
FromItemNo Code[20]
ToItemNo Code[20]
IsHandled Boolean

OnBeforeOnRun

[IntegrationEvent(False,False)]
local procedure OnBeforeOnRun(Item: Record Item, var FirstItemNo: Code[20], var LastItemNo: Code[20], var IsItemCopied: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
FirstItemNo Code[20]
LastItemNo Code[20]
IsItemCopied Boolean
IsHandled Boolean

OnRunOnAfterItemCopied

[IntegrationEvent(False,False)]
local procedure OnRunOnAfterItemCopied(var CopyItemBuffer: Record "Copy Item Buffer")

Parameters

Name Type Description
CopyItemBuffer Table Microsoft.Inventory.Item."Copy Item Buffer"

OnBeforeInitSeries

[IntegrationEvent(False,False)]
local procedure OnBeforeInitSeries(var Item: Record Item, var InventorySetup: Record "Inventory Setup")

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
InventorySetup Table Microsoft.Inventory.Setup."Inventory Setup"

OnBeforeCopyItemVariants

[IntegrationEvent(False,False)]
local procedure OnBeforeCopyItemVariants(var TempCopyItemBuffer: Record "Copy Item Buffer" temporary, FromItemNo: Code[20], ToItemNo: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
TempCopyItemBuffer Table Microsoft.Inventory.Item."Copy Item Buffer"
FromItemNo Code[20]
ToItemNo Code[20]
IsHandled Boolean

OnCopyItemPriceListLinesOnAfterPriceListLineSetFilters

[IntegrationEvent(False,False)]
local procedure OnCopyItemPriceListLinesOnAfterPriceListLineSetFilters(var PriceListLine: Record "Price List Line")

Parameters

Name Type Description
PriceListLine Table Microsoft.Pricing.PriceList."Price List Line"

OnCopyItemOnBeforeTargetItemInsert

[IntegrationEvent(False,False)]
local procedure OnCopyItemOnBeforeTargetItemInsert(SourceItem: Record Item, var TargetItem: Record Item, CopyCounter: Integer, var CopyItemBuffer: Record "Copy Item Buffer")

Parameters

Name Type Description
SourceItem Table Microsoft.Inventory.Item.Item
TargetItem Table Microsoft.Inventory.Item.Item
CopyCounter Integer
CopyItemBuffer Table Microsoft.Inventory.Item."Copy Item Buffer"

OnCopyItemPriceListLinesOnBeforeInsertNewPriceListLine

[IntegrationEvent(False,False)]
local procedure OnCopyItemPriceListLinesOnBeforeInsertNewPriceListLine(var NewPriceListLine: Record "Price List Line", PriceListLine: Record "Price List Line")

Parameters

Name Type Description
NewPriceListLine Table Microsoft.Pricing.PriceList."Price List Line"
PriceListLine Table Microsoft.Pricing.PriceList."Price List Line"

See also