You can use the following line code to release a product in another company:
EcoResProductReleaseSessionManager ecoResProductReleaseSessionManager; ecoResProductReleaseSessionManager = EcoResProductReleaseSessionManager::newReleaseSession(); ecoResProductReleaseSessionManager.addProduct(52565549190); ecoResProductReleaseSessionManager.addLegalEntityForAllProducts( CompanyInfo::findDataArea('USP2').RecId); if( !ecoResProductReleaseSessionManager.execute()) { error("An error occured"); }
You can use the following line code to release a product in another company: