Display message in ticket trigger

I am trying to display a popup message in a trigger "Request status changed".

EventData.setMessage() does not work:

Any ideas?

Marc

RE: Display message in ticket trigger

I don't think the Service screens are compatible with the message box. That'll only work in Web, so not where you change tickets.

Av: Frode Lillerud 5. feb 2020

RE: Display message in ticket trigger

exitWithMessage() might be what you want?

https://community.superoffice.com/documentation/SDK/SO.Customer.Service.Support/html/EJScript-Globalfunctions-2901.htm

Av: Eirik Rusten 5. feb 2020

RE: Display message in ticket trigger

Hi Marc,

 

You can try to add an ejScript element in your screen and use the alert function in some inline script.

Here is some untested code, but I think you will manage.

 

print("
<script>

$(function() {
     setTimeout(function(){
         alert(\"This is a message"\");
     }, 50);
});

</script>"
);
Av: Niels van Broekhoven 5. feb 2020

RE: Display message in ticket trigger

Hi,

As other point out, the EventData.message does not work in this context. This is a bit similar to other development environments, such as javascript, where you have a standard event singleton containing contextual data, but depending on the context, not all properties are supported.

So, depending on which trigger you are using, various properties of the EventData will have or not have an effect. For instance, blockSave will not work in an "After save" trigger. It will not work for most triggers in Service either.

The triggers for when a Request property has been changed cannot influence the UI. If you want a warning for when the category has been changed, you need to modify the screen.

Sverre

Av: Sverre Hjelm 5. feb 2020