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 05:24 AM
Can you show your UI action?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2024 05:40 AM
Sure. This is the working UI Action:
The commented lines are used to change some fields on the record..
For SOW I've tried several ideas and messed it up completely:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2024 05:55 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2024 06:15 AM
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 🙂