Tuesday, October 20, 2020

Delete Product Master in Ax 2012 X++


 Hi guys , Today we see how to delete product master from Ax 2012 using X++


Run the below code.This code delete only Product master Not its Product dimensions and product variants.


static void deleteProduct(Args _args) 

{

    InventTable         inventTable;

    EcoResProduct           ecoResProduct;

 

   inventTable = InventTable::find('D0006',true);

   ecoResProduct = EcoResProduct::find(inventTable.Product, true);

   inventTable.delete();

   if (ecoResProduct.validateDelete())

   {

       ecoResProduct.delete();

   } 

}


Keep Daxing!!

Friday, October 9, 2020

Customization Analysis Report In D365 F & O

 Hi guys, Today we see how to create CAR (Customization Analysis Report) in D365 F & O.


                                The Customization Analysis Report is a tool that analyzes your customization and extension models, and runs a predefined set of best practice rules. The report is one of the requirements of the solution certification process. The report is in the form of a Microsoft Excel workbook.

Source Link


Open the Command Prompt (Run as administrator).

Change path:

CD .. -->previous folder

CD K: -->Change to k drive

k: --> Again write it

//CD k:\AOSService\PackagesLocalDirectory\Bin

cd AosService\PackagesLocalDirectory


Note : Paste Xppbp cmd if mot found navigate to bin folder


K:\AosService\PackagesLocalDirectory>cd bin


Standard Example:

                xppbp.exe -metadata=<local packages folder> -all -model=<ModelName> -xmlLog=C:\BPCheckLogcd.xml -module=<PackageName> -car=<reportlocation>

Run the below Command

xppbp.exe -metadata=k:\AosService\PackagesLocalDirectory -all -model="MYModel" -xmlLog=C:\Temp\BPCheckLogcd.xml -module="TestCase" -car=C:\Temp\CustomizationAnalysisReport_Foundation.xlsx

Made changes as per your model and package.


Keep Daxing!!