Passing the logger object from an inbound email action to the JSUtil script include produces an error stating that the EmailLogger function is not allowed in the global scope. Passing the logger object to other global script includes does not produce an error.
Steps to Reproduce
- Login a pre-Jakarta instance
- Create an inbound email action that uses the JSUtil script include to process the logger object. For example:
gs.log("logging logger" + JSUtil.nil(logger));
- Trigger the inbound email action.
The system displays the error: Error: Evaluator: com.glide.script.fencing.MethodNotAllowedException: Function EmailLogger is not allowed in scope global
The workaround on pre-Jakarta P1 instances is to not pass the logger object through the JSUtil script include.
Related Problem: PRB663869