"So for runScripts, since it is being run in a tag, it is executing in the global scope, so it can only use global resources. Therefore project scripts will not work.
The isAlarmActive function expects an alarm to be present. From what you showed me of your UDT, it looked like there were no alarms specified there. I tried your exact same expression in an expression tag of mine, but there was an alarm in the paths that it would be looking at, and it worked fine. Took the alarm away, and I got reference not found.
That error indicates that whatever the expression is trying to do it can’t find a reference to that particular object. Not that it can’t do the function. So for the runScript, the tag can do runscripts, but it can’t find what you are pointing at. The isAlarmActive is valid, but it can’t find anything at the path you specified."