Can I edit the reply / Reply All / Forward "reply to" email buttons ?

Jerome MAISETTI
Mega Guru

Hello
I activated the option to have "Reply" , "Reply All", "Forward" button when email are received in a case.
However, I would need to modify the automatic "reply to" address that is assigned in the email popup.
Do you know if this is something I can achieve ?
Idea would be that email to be the service center email from the current service contract of the case

Thanks

Jérôme

1 ACCEPTED SOLUTION

Jerome MAISETTI
Mega Guru

Hello,
I managed to do it with some scripting in the templates.
Set the 'From Generation Type" to Text and do this : javascript: ClientTemplateContext.getCurrent().u_service_contract.u_service_mail

That worked 🙂

View solution in original post

4 REPLIES 4

SatyakiBose
Mega Sage

Hello @Jerome MAISETTI 

The email popup loads the UI page - email_client

This is embedded in the platform codes, and is not exposed to customers or admins.

Therefore you cannot change the mail id's set on the To field.

It will automatically pick the callers email id, and the email id of the current logged in user.

You will be only able to edit it manually.

Jerome MAISETTI
Mega Guru

Hello,
I managed to do it with some scripting in the templates.
Set the 'From Generation Type" to Text and do this : javascript: ClientTemplateContext.getCurrent().u_service_contract.u_service_mail

That worked 🙂

SahityaC
Tera Contributor

Hello,

can you explain in detail how you have achieved this?

Thank you 

peterluther
Tera Contributor

Found a way to solve this. I created a Before BR in sys_email on Insert. This is checking for  the related target records assignmentgroup and if mapped to that I'm setting the wanted send/reply-to adress in the email before if moves out of servicenow.

--- cut ---

(function executeRule(current, previous /*null when async*/) {
 
var gr = new GlideRecord('task');
gr.get(current.instance);
if (gr){
if (gr.assignment_group = "<sys_id of the group you want to handle"){ 
current.reply_to = "<my_other_email@comany.com>";
current.user = "<my_other_email@comany.com>";
}
}

})(current, previous);

--- cut ---