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