Hi guys, Today we see how to release Product master through class in ax 2012 using X++.
static void productMasterRelease(Args _args)
{
EcoResProductReleaseSessionManager ecoResProductReleaseSessionManager;
RefRecId _productMasterRecId = 52565460661;
ecoResProductReleaseSessionManager = EcoResProductReleaseSessionManager::newReleaseSession();
ecoResProductReleaseSessionManager.addProductMasterWithVariants(_productMasterRecId);
ecoResProductReleaseSessionManager.addLegalEntityForAllProducts(CompanyInfo::findDataArea(curext()).RecId);
ecoResProductReleaseSessionManager.execute();
}
Keep Daxing!!
No comments:
Post a Comment