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,

"SysDictTable Object not initialized" when transferring the data from staging table to target table for product entity in DMF- Dynamic AX

Hi,

This is the error I'm receiving when importing the product entity using DMF.
while transferring record from staging to target table.

Sol:
Just add following code in
Class: DMFEntityWriter,
method : Write,
line : 217
Note:   inside the parent while loop in line 215.

if (   currentNode.ChildDataSource == 'RetailInventTable'  )
{
continue;
}

Regards,

SQL code to upate one Legal entity banner to all the legal entity in D365

 Hi, update companyimage set  companyimage.Image  = companyimageA.Image  from  ( select Image from companyimage where dataAreaid = 'USF...