Monday, February 4, 2019

How to create Retail product category in D365FO using X++


Guys we can use below code to create the retail product category using X++

 EcoResCategory ecoResCatImport

 ecoResCatImport.clear();
 ecoResCatImport.initValue();
 ecoResCatImport.initFromParent(EcoResCategory::findByName('HAL',ecoResCategory.CategoryHierarchy);
ecoResCatImport.Code = 'Test_categoryimport';
 ecoResCatImport.Name = 'Test_Categoryimport';
 ecoResCatImport.addToHierarchy();

No comments:

Post a Comment