PCRuntimeLibrary::createNewVariantConfiguration Method [AX 2012]

Creates a new variant configuration and a new distinct product variant for the specified generic product model.

server public static container createNewVariantConfiguration(
    EcoResProductMaster _ecoResProductMaster, 
    ItemId _itemId, 
    InventDimId _lineInventDimId)

Run On

Server

Parameters

_ecoResProductMaster
Type: EcoResProductMaster Table
The product master that is associated with the distinct product variants.
_itemId
Type: ItemId Extended Data Type
The ID of the item that was released from the generic product model.
_lineInventDimId
Type: InventDimId Extended Data Type
The ID of the inventory dimension that is attached to the item line that contains the item.

Return Value

Type: container
A container that has the ID of the new variant that was created, the ID of the inventory dimension that was created, and the name of the configuration that was created.
Show: