PCRuntimeLibrary::createVariantForItem Method [AX 2012]

Creates a new product variant for the specified product master.

server public static container createVariantForItem(
    ItemId _itemId, 
    InventDim _baseInventDim, 
    EcoResProductMaster _ecoResProductMaster, 
   [PCConstraintBasedConfigurationName _configurationName])

Run On

Server

Parameters

_itemId
Type: ItemId Extended Data Type
The ID of the item that was released from the generic product model.
_baseInventDim
Type: InventDim Table
The inventory dimension that serves as a base for the construction of the new dimension.
_ecoResProductMaster
Type: EcoResProductMaster Table
The product master that is associated with the distinct product variants.
_configurationName
Type: PCConstraintBasedConfigurationName Extended Data Type
The configuration name to attempt to use again; optional.

Return Value

Type: container
A container that contains the ID of the new variant, the ID of the inventory dimension, and the name of the configuration.

ExceptionCondition
Error

The function was called without the correct parameters.

Show: