---
title: "Codeunit 6113 Item Data Migration Facade"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/6113-item-data-migration-facade/
type: codeunit
id: 6113
name: "Item Data Migration Facade"
app: "Base Application"
namespace: System.Integration
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/6113-item-data-migration-facade/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 6113 Item Data Migration Facade

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/6113-item-data-migration-facade/

| | |
| --- | --- |
| App | Base Application |
| Namespace | System.Integration |
| Versions | 17-28 |
| Source file | System/DataMigration/ItemDataMigrationFacade.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| CreateItemIfNeeded | (Code[20], Text[50], Text[50], Option) | Boolean | public | 17-28 | - | - |
| CreateLocationIfNeeded | (Code[10], Text[50]) | Boolean | public | 17-28 | - | - |
| DoesItemExist | (Code[20]) | Boolean | public | 17-28 | - | - |
| SetGlobalItem | (Code[20]) | Boolean | public | 17-28 | - | - |
| ModifyItem | (Boolean) | - | public | 17-28 | - | - |
| CreateSalesLineDiscountIfNeeded | (Option, Code[20], Option, Code[20], Decimal) | Boolean | public | 17-28 | - | - |
| CreateSalesLineDiscountIfNeeded | (Enum Price Source Type, Code[20], Enum Price Asset Type, Code[20], Decimal, Decimal) | Boolean | public | 17-28 | - | - |
| CreateCustDiscGroupIfNeeded | (Code[20], Text[50]) | Boolean | public | 17-28 | - | - |
| CreateItemDiscGroupIfNeeded | (Code[20], Text[50]) | Boolean | public | 17-28 | - | - |
| CreateSalesPriceIfNeeded | (Option, Code[20], Code[20], Decimal, Code[10], Date, Code[10], Decimal, Code[10]) | Boolean | public | 17-28 | - | - |
| CreateSalesPriceIfNeeded | (Enum Price Source Type, Code[20], Code[10], Date, Code[20], Code[10], Code[10], Decimal, Decimal) | Boolean | public | 17-28 | - | - |
| CreateTariffNumberIfNeeded | (Code[20], Text[50], Boolean) | Boolean | public | 17-28 | - | - |
| CreateUnitOfMeasureIfNeeded | (Code[10], Text[10]) | Boolean | public | 17-28 | - | - |
| CreateItemTrackingCodeIfNeeded | (Code[10], Text[50], Boolean, Boolean) | Boolean | public | 17-28 | - | - |
| CreateInventoryPostingSetupIfNeeded | (Code[20], Text[50], Code[10]) | Boolean | public | 17-28 | - | - |
| CreateGeneralProductPostingSetupIfNeeded | (Code[20], Text[50], Code[20]) | Boolean | public | 17-28 | - | - |
| CreateItemJournalBatchIfNeeded | (Code[10], Code[20], Code[20]) | - | public | 17-28 | - | - |
| CreateItemJournalLine | (Code[10], Code[20], Text[50], Date, Decimal, Decimal, Code[10], Code[20]) | - | public | 17-28 | - | - |
| SetItemJournalLineItemTracking | (Code[50], Code[50]) | - | public | 17-28 | - | - |
| SetItemJournalLineDimension | (Code[20], Text[50], Code[20], Text[50]) | - | public | 17-28 | - | - |
| CreateDefaultDimensionAndRequirementsIfNeeded | (Text[20], Text[50], Code[20], Text[30]) | - | public | 17-26 | - | - |
| CreateBOMComponent | (Code[20], Decimal, Code[10], Option) | - | public | 17-28 | - | - |
| SetItemTrackingCode | (Code[10]) | - | public | 17-28 | - | - |
| SetBaseUnitOfMeasure | (Code[10]) | - | public | 17-28 | - | - |
| SetPurchUnitOfMeasure | (Code[10]) | - | public | 17-28 | - | - |
| SetItemDiscGroup | (Code[20]) | - | public | 17-28 | - | - |
| SetTariffNo | (Code[20]) | - | public | 17-28 | - | - |
| SetCostingMethod | (Option) | - | public | 17-28 | - | - |
| SetUnitCost | (Decimal) | - | public | 17-28 | - | - |
| SetStandardCost | (Decimal) | - | public | 17-28 | - | - |
| SetVendorItemNo | (Text[20]) | - | public | 17-28 | - | - |
| SetNetWeight | (Decimal) | - | public | 17-28 | - | - |
| SetUnitVolume | (Decimal) | - | public | 17-28 | - | - |
| SetBlocked | (Boolean) | - | public | 17-28 | - | - |
| SetStockoutWarning | (Boolean) | - | public | 17-28 | - | - |
| SetPreventNegativeInventory | (Boolean) | - | public | 17-28 | - | - |
| SetReorderQuantity | (Decimal) | - | public | 17-28 | - | - |
| SetAlternativeItemNo | (Code[20]) | - | public | 17-28 | - | - |
| SetVendorNo | (Code[20]) | Boolean | public | 17-28 | - | - |
| SetUnitPrice | (Decimal) | - | public | 17-28 | - | - |
| SetUnitListPrice | (Decimal) | - | public | 17-28 | - | - |
| SetLastDateModified | (Date) | - | public | 17-28 | - | - |
| SetLastModifiedDateTime | (DateTime) | - | public | 17-28 | - | - |
| CreateCustomerPriceGroupIfNeeded | (Code[10], Text[50], Boolean) | Code[10] | public | 17-28 | - | - |
| SetInventoryPostingSetupInventoryAccount | (Code[20], Code[10], Code[20]) | - | public | 17-28 | - | - |
| SetGeneralPostingSetupInventoryAdjmntAccount | (Code[20], Code[10], Code[20]) | - | public | 17-28 | - | - |
| SetInventoryPostingGroup | (Code[20]) | Boolean | public | 17-28 | - | - |
| SetGeneralProductPostingGroup | (Code[20]) | Boolean | public | 17-28 | - | - |
| SetSearchDescription | (Code[50]) | - | public | 17-28 | - | - |
| CreateDefaultDimensionAndRequirementsIfNeeded | (Text[20], Text[50], Code[20], Text[50]) | - | public | 27-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnMigrateItem | (RecordId) | 17-28 | - | - |
| Integration event | OnMigrateItemPrice | (RecordId) | 17-28 | - | - |
| Integration event | OnMigrateItemSalesLineDiscount | (RecordId) | 17-28 | - | - |
| Integration event | OnMigrateItemTrackingCode | (RecordId) | 17-28 | - | - |
| Integration event | OnMigrateCostingMethod | (RecordId) | 17-28 | - | - |
| Integration event | OnMigrateItemUnitOfMeasure | (RecordId) | 17-28 | - | - |
| Integration event | OnMigrateItemDiscountGroup | (RecordId) | 17-28 | - | - |
| Integration event | OnMigrateItemTariffNo | (RecordId) | 17-28 | - | - |
| Integration event | OnMigrateItemDimensions | (RecordId) | 17-28 | - | - |
| Integration event | OnMigrateItemPostingGroups | (RecordId, Boolean) | 17-28 | - | - |
| Integration event | OnMigrateInventoryTransactions | (RecordId, Boolean) | 17-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.
