Ui actions to send an email

nehas
Kilo Contributor

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

18 REPLIES 18

sachin_namjoshi
Kilo Patron
Kilo Patron

i have seen those threads and created mine in the same way but here its not working.


Ashutosh Munot1
Kilo Patron
Kilo Patron

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.


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);


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');