Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to call email script to notification?

ak4
Tera Contributor

How to call email script to notification?

7 REPLIES 7

sachin_namjoshi
Kilo Patron
Kilo Patron

call email script in body of your notification like below

 

${mail_script:test_script}

 

Regards,

Sachin

Thousif S N2
Tera Contributor

use below code in the notification template

 

${mail_script:nameofthescript}

Kunal Varkhede
Tera Guru

Hi,

 

In notification What it will contain section, add below line

 

${mail_script:EmailScriptName}

 

Thanks,

Kunal

asifnoor
Kilo Patron

Hello Ak,

Go to your notification and there you will see a link Email Notification Scripts. Click on that and then create New

There you can create a mail script.

Then inside your notification, under what it contains, mention that mail script name liek below

${mail_script:your_mail_script_name}

Kindly mark the comment as a correct answer and helpful if this answers your question.