Select email client template

hartr
Giga Contributor

I'd like to use the email client function to send out different types of emails to different recipient.

I can setup multiple email client templates for the same table, but there doesn't seem to be any way to select which template is applied when the client email button is pressed (it always applies the default one)

I'd like to see something like the quick message select box but for client templates (so I can control the to: field, subject: field and body).

Does anyone know of anyway to accomplish this ?
Thanks

12 REPLIES 12

hartr
Giga Contributor

Iv'e found a function called "emailClientOpenPop()" which launches the email client, but I don't know if I can pass a parameter to it to tell it which template to apply - can anyone help ?


hartr
Giga Contributor

anyone ?


CapaJC
ServiceNow Employee
ServiceNow Employee

I took a look at that function, and it doesn't accommodate any additional parameters. Current design assumes just one template per table.

It's certainly a good idea for an enhancement request, however. My unfounded impression is that it's not a particularly widely used feature, so probably hasn't gotten much attention in the way of enhancements. Which is kinda like a self-fulfilling prophecy, innit? If email client templates got enhanced and maybe made easier to use, maybe they WOULD get used more.

Anyway, I recommend opening an Incident with Customer Support to ask for such an enhancement. And in the meantime, maybe someone else will reply with some workaround they've come up with.


Hi Hartr,
I think we should try another option instead of Client template.

Client template can't work like quick message.because client template are table specific and only default only one template show when click on email icon. so there is no multiple option for client template.
If you want to select multiple option for email template then create one choice filed on any form and specify template name.
another thing if you want to see which template i am sending then make one custom field like Email already send. when select any template from choice and click on UI Action then send template choice value are save in Email already send.
Note: If select caller then caller email auto populate and send template. if caller are not available then optional caller name and caller email address use and then send email template.

Step 1: create choice field and name like Template after that right click on template field then personalize choices after that create option as for your requirement and save. again right click on Template field and click on show choice list then you will find label and value in list mode.
Notice: value of choice field and event name must be same.
example: value-> misscalltemplate
event name-> misscalltemplate
so create event as same of choice filed value.

step 2: Create email template as for your requirement
step 3: Create one UI Action like Send Template
Name: Send template
Table:..........
script:
if(typeof window == 'undefined') {
semail();
}
function semail(){
var e='';
if(current.caller_id == '' ){
e = current.u_email;
} else {
e = current.caller_id.email;
}
gs.eventQueue(current.u_template, current, e, 'Email');
if(current.u_emails_already_send==''){
current.u_emails_already_send = current.u_template;
} else {
current.u_emails_already_send = current.u_emails_already_send+"",""+current.u_template;
}
current.u_template = '';
action.setRedirectURL(current);
current.update();
}
step 4: Go to notification and make new notification.
Name : Notification Name
Table : ......
when to send:
Send when: Event is fired
Event Name:select event name

Who will received
Event parm 1 contains recipient: check ( Note: No need to select User/Group in the field because i have two caller one are optional and one are user table caller )

What it will contain
Email template : Select email template and save

I hope you can select multiple template from one table and easy way send and to see which template are send. it will show in text box.
Kind Regards,
Chandan Shrivastava.