How to set Subject in Quick Messages for Email Client Template

tanz
Tera Expert

Hi,

I want to change the subject from the default subject of Email Client Template when I select a Quick Message. 

Please can you provide me the solution for this.

Please note that I cannot make changes to the default Email Client subject and a new subject should show whenever I select my Quick message from the Email Client.

1 ACCEPTED SOLUTION

Hi,

 

I was able to change subject through before insert and update BR in the sys_email table while sending(condition is type is send-ready). 

(function executeRule(current, previous /*null when async*/) {

if(current.body.indexOf("Support Group") > -1){
current.subject =" Contant Message Failure";
current.recipients = "Support@m.com";
}

})(current, previous);

 

View solution in original post

7 REPLIES 7

Sagar Pagar
Tera Patron

Hi,

It is not possible to override/change the subject with Quick message for Email client templates.

You can use quick messages to populate the Email signature, any note etc. basically change or update body contents not a subject.

 

You can send a manual email through Send email option in form header.

find_real_file.png

 

Thanks,
Sagar Pagar

The world works with ServiceNow

Hi,

 

I was able to change subject through before insert and update BR in the sys_email table while sending(condition is type is send-ready). 

(function executeRule(current, previous /*null when async*/) {

if(current.body.indexOf("Support Group") > -1){
current.subject =" Contant Message Failure";
current.recipients = "Support@m.com";
}

})(current, previous);

 

but this would change the subject even when you trigger the email via notification or gs.eventQueue() and not only from email client template

How would you determine the difference?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader