How to modify the subject line of Notification ? Where exactly to write the mail script for subject line as I want to change the subject line on basis of a field present on another table

Servicenow12
Tera Contributor

How to modify the subject line of Notification ?  I want to change  the subject line on basis of a field present on another table .

I referred the post below but not getting where exactly to call it 

https://community.servicenow.com/community?id=community_question&sys_id=4e1303e1dbd8dbc01dcaf3231f961966

Please see below screenshot I want the account field from 'x_nps_billing_table' to be copied to the subject line of notification.

Where exactly i have to mention the mail script in notification ??

Can somebody help with an example ???

Also please check the below script and suggest if something missed.


find_real_file.png

6 REPLIES 6

Saurav11
Kilo Patron
Kilo Patron

Hello

You habe to use the beliw syntax

email.setSubject(+ gr.u_account); instead of template.print

Please mark answer correct/helpful based on impact

But where i should call it in notification ? whats the syntax ?

To call it, In the message html right the below syntax

${mail_script:mailscriptname}

Please mark answer correct/helpful based on impact

I have to call this to modify subject Line ....still i will use this syntax ?