In #hybris, from some version onwards, a Groovy console appeared which allows the execution of administrator code on the server with data in memory and in the DB. It’s a very powerful tool that can break or fix everything.
In the article, I share my makeshift Groovy scripts that simplify troubleshooting and development.
– Display any file on the server
– Execute a command
– Show last N lines from the console log
– Execute a flexible search query
– Execute a raw SQL query
– Retrieve an item by PK
– Modifying objects
– Removing items
– Sending data by e-mail
– Importing IMPEX
– Print all properties of an object
– Print all methods of an object
– Print the hybris type tree
– Print hybris type stats
https://hybrismart.com/2017/11/23/useful-groovy-scripts-part-1/
