Hi,
I am trying to use
There are no exceptions,
I get the following error:
Action 'getConfigElementVP' in module 'com.shnagaraja.actions' failed : TypeError: Cannot read property "configurationElements" from null (com.shnagaraja.actions/getConfigElementVP#11)
The correct path is just "web-root":
var configurationElementPath = "web-root";
var testcategory = Server.getConfigurationElementCategoryWithPath(configurationElementPath);
System.log(testcategory)
This will return:
2021-01-20 07:37:32.228 +01:00INFOConfigurationElementCategory:ch.dunes.scripting.jsmodel.JSConfigurationElementCategory@7e784d38
If you use any subfolder in web-root, then you'll have to use "web-root/<subfolder>"