can we attach images in notification in ServiceNow?

Ganesh53
Mega Contributor

I have one notification on which i want to attach screenshots is it doable?

1 ACCEPTED SOLUTION

Harish KM
Kilo Patron
Kilo Patron

Do you have attachments in record? --use include attachment checkbox in Notification

If you dont have attachment in record and want to send image. Use email script.

// insert the image to image table

var image = "abc.png''; //image name

template.print( '<img src="' + image + '" />' );

//call the email script to youre Notification using

${mail_script:emailscriptname}

Regards
Harish

View solution in original post

7 REPLIES 7

Himanshu Dubey
Giga Guru

Hi Ganesh,

Using email script you can attach images

var image = '';

	if( /*condition*/ )
		image = 'image1.png';	
	else
		image = 'image2.png';	

	template.print( '<img src="' + image + '" />' 

Anish kumar
Kilo Guru

Hi Ganesh

 

Please refer below links, it has solution of you question with step by step screenshot go on this link and see all reply of Jim Coyne

 

https://community.servicenow.com/community?id=community_question&sys_id=2d50f75bdbb0f3c814d6fb243996...

 

 

 

Hope this will be useful for you.

 

Kindly mark it correct and helpful if it solves your issue.

 

Thanks and Regards,

Anish kumar

Namrata Khabale
Giga Guru

Hey Ganesh,

 

To attach screenshots or Image to notifications:

 

Follow the Screenshots:

Step1: There is Icon Insert image on the notification-->click

 

find_real_file.png

 

 

Step 2: There are two types:

 

Image Library: you can select image from db_image table.

Attachment: From you folder.

Select Attachment.

 

find_real_file.png

 

Step3:

Select the name of image or screenshot-->Adjust other parameters according to your need-->Save

find_real_file.png

 

Click on preview notification to see result:

Output:

 

find_real_file.png

 

Mark Correct and Helpful if it helps!!!

 

Best Regards,

Namrata.