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

I reduced the code and tried:

Xelebrate_0-1714138042690.png

 

This is working! Wow - I am sure I had that before but not working ... well ... 

 

Thank you @Shree123!!!

 

Now I just need to figure out how to get the modal working without breaking the event-function 😄 

 

I am glad it worked. Do reach out if further help needed.