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.

Is it possible to call mail script in scheduled email of reports?

Savita P
Tera Contributor

Is it possible to call mail script in scheduled email of reports? I need to send send from address and other details.Currentlt it is sending email as "IT Service Desk<xxxxx@service-now.com>",  I want to set it with another values. How we can achieve this?

1 ACCEPTED SOLUTION

AbhishekGardade
Giga Sage

Hello Hit,

Yes you can call it in schedeuled reports:


1. Create mail scripts in System Notifications -> Email -> Notification Email Script

2. Add this code :  email.setFrom("Your label <xxxxx@service-now.com>");

3. Call in Introductory message field on scheduled reports by using

                  ${mail_script:script name}.


Please mark as Correct Answer/Helpful, if applicable.
Thanks!
Abhishek Gardade

Thank you,
Abhishek Gardade

View solution in original post

1 REPLY 1

AbhishekGardade
Giga Sage

Hello Hit,

Yes you can call it in schedeuled reports:


1. Create mail scripts in System Notifications -> Email -> Notification Email Script

2. Add this code :  email.setFrom("Your label <xxxxx@service-now.com>");

3. Call in Introductory message field on scheduled reports by using

                  ${mail_script:script name}.


Please mark as Correct Answer/Helpful, if applicable.
Thanks!
Abhishek Gardade

Thank you,
Abhishek Gardade