UI Action in SOW does not trigger an event
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2024 05:02 AM
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 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2024 06:29 AM
I reduced the code and tried:
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 😄
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2024 06:34 AM
I am glad it worked. Do reach out if further help needed.