preloader-matrix

Alfasith

EcoResValue, EcoResAttribute with Item Id relation in AX

Hi,

static void AlfasithGetProductAttributes(Args _args)
{
    inventTable                 InventTable;
    EcoResProductAttributeValue ecoResProductAttributeValue;
    EcoResAttribute             ecoResAttribute;
    EcoResValue                 ecoResValue;
    EcoResTextValue             ecoResTextValue;

    InventTable = InventTable::find(‘1604’);
    while select EcoResProductAttributeValue where EcoResProductAttributeValue.Product == InventTable.Product
    {
         select ecoResValue where ecoResValue.RecId == ecoResProductAttributeValue.Value;
         select ecoResTextValue where ecoResTextValue.RecId == ecoResProductAttributeValue.Value;
        info(strFmt(“%1 – %2 – %3”, InventTable.ItemId, ecoResAttribute.Name, ecoResValue.value()));
    }  
}

Regards,

Leave a Reply

Your email address will not be published.