How to Capture Notification Images in an Update Set

mounika7675
Tera Contributor

Hi,

 

I have created a notification in ServiceNow where the Message HTML contains both text and embedded images. While moving the changes through an update set, I noticed that all notification-related configurations are being captured correctly; however, the images used in the notification are not being included in the update set

1000161215.jpg

 i need to capture the image which is present in the screenshot notification 

 

Is there any additional configuration required to ensure images are available after promoting the update set?

3 REPLIES 3

Dr Atul G- LNG
Tera Patron

Hi @mounika7675 

 

The sys_attachment table is just part of the equation when it comes to attachments and data in ServiceNow.  There is another table, sys_attachment_doc, that contains the actual data that's referenced from sys_attachment.  It has a field, Sys Attachment that has the actual file name for the data that it's referencing.  You'll need to export both the xml record from sys_attachment and also ALL of the corresponding XML records from sys_attachment_doc to move the data to test in this fashion.

 

https://www.servicenow.com/community/developer-forum/attached-image-in-the-notification-is-not-avail...

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Tanushree Maiti
Tera Patron

Hi @mounika7675 

 

1. We add the image Images  in table (db_image) manually ( give proper instruction in story , so that release team can do it during update set deployment.

Naming convention we keep  same across the instance

2.  Same  image name we embed in notification template ( source code) and that is captured in Update set.

Here image is linked by name not by sys_id.

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

Ankur Bawiskar
Tera Patron

@mounika7675 

This is OOTB behavior

Approach 1

I shared solution for this in an thread, check that

Am unable to capture the image in update set 

Approach 2: Use this if customer doesn't agree to approach 1

1) add image to db_image table and it gets captured in update set

55.png56.png

2) then refer to this db_image in your message HTML

55.png56.png57.png

55.png56.png

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader