How to load catalogs using groovy script in hybris
- 4th Feb 2018
- 0
- 16616
- get all catalogs in hybris get specific catalog based on id groovy script to get all catalogs in hybris groovy script to get catalog based on id load all catalogs in hybris
We can use groovy script to check the output at runtime rather than running the application We can run groovy script in HAC We can also use the similar code in our application Let’s see below groovy script to get all the catalogs import de.hybris.platform.catalog.CatalogService; import de.hybris.platform.core.Registry; import de.hybris.platform.catalog.model.CatalogModel; CatalogService catalogService = (CatalogService) Registry.getApplicationContext().getBean(’catalogService’); println(“ […]