Alfasith AX

Alfasith AX
اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا

Friday, May 16, 2014

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,

No comments:

Post a Comment

How find size of recordsortedlist in D365/AX 2012

Hi, This is the continuity of the previous article where we are now getting the size of recordsortedlist . if(recordsortedlist.len() >1) ...