In AX4, we could easily check if a configuration existed for an Item. We could simply do
if (ConfigTable::find(_ItemId,value) ...
Now with the new design in AX 2012, it seems that we must find all configuration RecIDs in the EcoResProductMasterConfiguration and then loop through them and find each RecID in EcoResConfiguration
Something like
while select EcoResProductMasterConfiguration where EcoResProductMasterConfiguration.ConfigProductMaster == InventTable::find(_ItemId).Product { configId = EcoResConfiguration::find(EcoResProductMasterConfiguration.Configuration).Name; if configId == value .. }
I was wondering if there is any helper class that would make the job easier. I found a class named EcoResEcoResProduct_EcoResConf, but can't figure out if it could help in this task.
At the end what I would like is a fast way to check if a configuration name exists for a product
*This post is locked for comments