How to send an email notification through a UI Action script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2018 01:39 PM
I want to add a List Action on subtasks that allows a person to send a reminder type notification to the Assigned To person to work on their assigned subtask. I don't want to capture any event parameters or anything like that. I just want a person (the Parent Task owner for example) to be able to select say, 3 out of 5 subtasks, then go down to the List Action drop down and select something like "Send Reminder" and have that UI action send a canned Email Notification. Everything I have researched so far gets involved with creating an Event and passing parameters, etc. There has got to be an easier solution.
- Labels:
-
User Experience and Design

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2018 01:48 PM
You're going to have to script something. You have 2 options...
1) Set up your UI action script to make an update to some field on each of those records so that it triggers an email notification.
2) Trigger an event in your UI action.
Triggering an event really isn't a big deal though (and is a better option than making an unnecessary update to each of those records to do the same thing). All you need to do is add your event in the event registry and then issue the single-line command. Once you do that all of the configuration in your email notification is exactly the same except for changing your notification to respond to the event.
gs.eventQueue("your.event.name", current, gs.getUserID(), gs.getUserName());

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2018 02:43 PM
Just checking on on this one. Has this question been answered or is there more information I can help you with? If it's been answered, please mark the answer above as the correct one so people know this has been taken care of. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2018 01:53 AM
Provide the event under this condition "if (typeof window == 'undefined'){//specify the event under any required conditions}" in UI Action
My below example is based on Incident UI Action.
if (typeof window == 'undefined')
{
serverFunction();
if(current.state == '6') /*Use any conditions over here then call the eventQueue which is associated with Email Notification*/
{
//Inside the loop call the eventQueue to trigger the mail notification.
gs.eventQueue("incident.test", current, current.caller_id);
}
}
I have tried many possibilities, this worked well!
As I have passed the param1 in the event queue [gs.eventQueue("incident.test", current, current.caller_id)] please ensure your email notification "send to param1" (whom to send) is alone selected.
Please let me, in case of any queries.
Thanks,
Sangeetha.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2020 09:36 PM
Hi,
My requirement is to send notification to selected users from list contact table using ui action, but event is not triggering. Can anyone help me here.