Refresh ticket after trigger
(New Service)
Is it possible to refresh a ticket after specific triggers has run for the ticket?
I need to remove the email headers from a new message before it displays and prevent the sendout of the message, so this is what i have come up with.
In the trigger "Outbound email or SMS created"
Copies the new message without the emailheaders and deletes it so I have an new message without the emailheaders.
Prevents the sendout of the now deleted message.
I tried to do the copy message function in the "New External message on request" trigger, but that didn´t work cause when i tried to run the NSTicketAgent.
The problem with trigger "Outbound email or SMS created"
After the save does the messagelist contain both the new copied message and the old one.
However when i do a refresh does the old message disappear.
So is there any way to refresh the ticket so that the old message gets removed properly?
Alle Antworten (5)
Hi Fredrik,
Should be possible to force a refresh in your trigger with : ed.setNavigateTo("soprotocol:ticket.main[refresh=true]");
Hi Fredrik,
Yes you are correct, trigger you have connected to happens in background so then there is really no way to hook it up to UI unfortunately.
If you review this tutorial you will see the available options. If you can live with the headers being present it is pretty easy to just block sending.
Looks like there is not really any other solutions I can come up with unfortunately. Sequence of events makes it difficult.