preloader-matrix

Alfasith

Job to release the product for current legal entity in Dynamic AX

Hi,

static void ReleaseProductAlfasith(Args _args)
{
    EcoResProductVariantCreationMgr ProductVariantCreationMgr;
    _args = new Args();
    _args.record(EcoResProduct::findByProductNumber(“000149_202”));
    ProductVariantCreationMgr  = EcoResProductVariantCreationMgr::newFromArgs(_args);
    ProductVariantCreationMgr.parmCalledFromJob(true);
    ProductVariantCreationMgr.buildVariantSuggestions();
    ProductVariantCreationMgr.run();
    info(“Item Sucessfully released”);
}

Regards,

Leave a Reply

Your email address will not be published. Required fields are marked *