RetailTransactionServiceOrders::FindOrCreateInventDim Method [AX 2012]
Finds (or Creates) the InventDim record for the given item details
Syntax
client server private static InventDim FindOrCreateInventDim(
ItemId _itemId,
InventBatchId _batchId,
InventSerialId _serialId,
RetailVariantId _variantId,
XmlElement _xmlRecord,
InventLocationId _inventLocation)
Run On
Called
Parameters
- _itemId
Type: ItemId Extended Data Type
Item Id
- _batchId
Type: InventBatchId Extended Data Type
Batch Id
- _serialId
Type: InventSerialId Extended Data Type
Serial Id
- _variantId
Type: RetailVariantId Extended Data Type
Variant Id
- _xmlRecord
Type: XmlElement Class
XML record containing additional dimension details
- _inventLocation
Type: InventLocationId Extended Data Type
Invent Location Id
Return Value
Type: InventDim Table
InventDim record
Remarks
Finds an InventDim record if it exists, or creates a new one, using the given item and location details.