Script Actions - Events > Make sure you're in global!

Simon Sparke
Tera Contributor

Hi Everyone,

I fell foul to this mistake a few weeks ago & wanted to share with others to try and help.
When you are building an event in te event registry, you might want there to be a script ran when the event is posted on your platform.

If you are working in a domain separated environment, you need to be aware that script actions (sysevent_script_action) inherits domain separation.
BUT, script actions ONLY run/oparate when the domain of the script action is root global.

If you do run a domain separated environment, I would stringly reccomend creating a display business rule & corresponding client script, so that if a user is attempting to create or edit a script action in any other domain, it show an error message (with the hope it saves lots of time in the debugging why thier script is not running)

I have attached a BR & Client script example to this post to save you some time

Thanks

1 REPLY 1

Abhilash Menon
Tera Contributor

Thanks a lot Simon. You save me a lot of hours.