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.

need help on the email layout html script

anushadande1793
Tera Contributor

Hi

 

Can anyone help on email layout script to add client image and notification body under it and border around it. if any  possibility, please entire script  which helps a lot

Any inputs really helps

 

Thanks,

Anusha

1 REPLY 1

vignesh parthib
Tera Guru

Hi @anushadande1793 

 

If you're looking to add an image to the footer, the code below will help. Replace the src value with your image URL. You can upload the image to the sys_image table in ServiceNow to generate a valid image link.

template.print('<div class="footer" style="padding:10px;text-align:center;font-size:12px;color:#777;">' +
               '<img src="https://<your-instance>.service-now.com/image/company_logo.png" alt="Company Logo" style="height:40px;margin-bottom:10px;" /><br>' +
               'This is an automated message from ServiceNow.' +
               '</div>');

 

Thanks,
Vignesh
"If this solution resolves your issue, kindly mark it as correct."