UI Action in SOW does not trigger an event

Xelebrate
Tera Contributor

I am struggling to migrate an existing, working UI Action into the Service Operations Workspace.

 

We have an E-Mail-Notification that should be fired by an event to send this email to the "caller" of the record (incident) (We are asking for an call back of the user). We are aware that we could use email-templates etc, but the one-click-button-experience is hardly requested for the Workspace...

 

This line is working well outside SOW in UI Action: 

gs.eventQueue("callback.clicked", current, gs.getUserID(), gs.getUserName());

 The event "callback.clicked" is existing for sure. 

 

As I understand these functions have to be split into "Script" and "Workspace Client Script" to work - But I have no clue how to archive that. There is at first no need for any confirmation etc, we just want to geht the event triggered including the param1 and param2. 

 

Maybe someone can help us out here? Any help/hint is welcome 🙂

6 REPLIES 6

Shree123
Tera Contributor

Can you show your UI action? 

Sure. This is the working UI Action:

Xelebrate_1-1714134929885.png

The commented lines are used to change some fields on the record..

 

For SOW I've tried several ideas and messed it up completely: 

Xelebrate_2-1714135214988.png

 

 

 

 

Hi,

Can you once comment your code from line 19. Just keep till 17. And then try to execute and test if the event is fired.

Well ... I am not sure what's going on. I did so, but still no success. 

I will try to build it again without all the "on-form-crap" I produced. Give me a few minutes 🙂