I have a trigger invoked by users through a workflow action. On a specific legitimate condition the trigger generate an error. When it happens, how can I display an error message to the user?
Try throw JavaScript exception:
throw "error message";
I added the throw statement in my "Object Script" trigger.
In the debug window, I can see it throwing an error as expected.
Unfortunately there is no sign of error on the user interface.
Instead I got this standard message from the workflow action:
Action "Send" has been performed on "L120229".
Any idea?
This should be fixed in the next release.
This should work now.
Thanks for fixing it.
Can we display a "Throw"-message in red (Error)?