Hi guys, Today we see how to get product variants in Ax 2012 using X++.
Run the below code.
static void getProductVariants(Args _args)
{
InventDimCombination inventDimCombination;
InventDim inventDim;
while select inventDimCombination
where inventDimCombination.ItemId == 'D0006'
join inventDim
where inventDim.inventDimId == inventDimCombination.InventDimId
{
info(strFmt('%1 : %2 : %3 : %4 : %5',
inventDimCombination.DistinctProductVariant,
inventDim.configId,
inventDim.InventColorId,
inventDim.InventSizeId,
inventDim.InventStyleId));
}
Keep Daxing!!
No comments:
Post a Comment