Ui actions to send an email
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2018 02:23 PM
Hello community,
I have an requirement in which i have to create an button using ui actions which is visible only when an particular sub-category is selected and on clicking the button an email should be sent to the client.
Please provide me with some suggestions to solve by requirement

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2018 07:07 PM
Please check below for solutions
How can I generate a notification from a UI action button?
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2018 08:55 PM
i have seen those threads and created mine in the same way but here its not working.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2018 09:17 PM
Hi Nagasri,
1) Have you created all the events and notification on the same table where this UI Action is?
2) How you coded it. If you show your code it will be good.
Thank you,
Ashutosh Munot
Please Hit Correct, Helpful or like,if you are satisfied with this response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2018 06:11 AM
Hi,
I have created an event and both ui actions and notifications on incident table itself. Here is my script
(function runMailScript(current, template, email, email_action, event) {
template.print('<p><font size="4" color="#808080" face="helvetica"><strong>' + gs.getMessage('Summary details') + '</strong></font></p>');
template.print('<p><font size="3" color="#808080" face="helvetica">' +
gs.getMessage('Opened By') + ': ' + gs.getMessage('${opened_by}') + '</font></p>');
template.print('<p><font size="3" color="#808080" face="helvetica">' +
gs.getMessage('Short description') + ': ' + gs.getMessage('${short_description}') + '</font></p>');
template.print('<p><font size="3" color="#808080" face="helvetica">' +
gs.getMessage('Email address') + ': ' + gs.getMessage('${u_original_email}') + '</font></p>');
})(current, template, email, email_action, event);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2018 06:39 AM
Hi Nagasri,
Instead of this:
gs.getMessage('Opened By') + ': ' + gs.getMessage('${opened_by}'); // What is this i didnt get this, can you tell me?
try this:
gs.getMessage('Opened By') + ': ' + gs.getMessage('opened_by');