- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2022 02:47 AM
Hi everyone,
I created a button with a UI Action to send an email while inside a ticket, however it's not triggering:
I created an Event Registration, an Email Notification (with "Event parm 1 contains recipient" checked) and this UI action.
The UI Action it's not even triggering the info message when the 3rd line is active, so I wonder if I'm missing something obvious? Am I not supposed to call the event from inside a UI action?
Thanks in advance for any help!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2022 02:55 AM
This is not work as gs.eventQueue() is a server side function and you are calling it in client side code.
Anything written in the onclick function in UI action act as a client side code, you need to remove the on click function and write this code directly in UI action script, then it will work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2022 02:55 AM
This is not work as gs.eventQueue() is a server side function and you are calling it in client side code.
Anything written in the onclick function in UI action act as a client side code, you need to remove the on click function and write this code directly in UI action script, then it will work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2022 05:01 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2022 03:11 AM
Hi
Replace the line gs.eventQueue('call.back.email', test); from your code to -
gs.eventQueue("call.back.email", current, test, '');
where,
call.back.email - should be your event name
current - current GlideRecord
test - contains the recipient of the email notification
Please mark my answer as helpful or correct, if applicable.
Thanks,
Aishwarya