Best place to store IMAGEs for Quick Messages so that content needn't be edited before moving to Production?

jhr
Kilo Expert

Hi,

The system I've started working on is set up so that images within Quick Messages are referenced by the https address of the webserver. Unfortunately, this means that the actual content of each Quick Message that includes an image needs to be edited before deployment to another environment. This results in the possibility that new errors may be introduced during the editing process. For those of you who have been developing in ServiceNow for a while, I would appreciate knowing how you are referencing images within quick messages so that manual editing is not needed. Many thanks for any pointers on how this can best be done!

1 ACCEPTED SOLUTION

Jacob_Andersen
ServiceNow Employee
ServiceNow Employee

It looks like in Eureka you'll be able to link to the image directly and the system will convert your link to the correct instance URL:


Email Notifications - ServiceNow Wiki



However, in the meantime, you'll need to have an absolute URL path (include https://[instance_name]....).   You can get your instance name (and therefore, build your url) via script as shown here: » How to find the name or URL of your Service-now instance via script



Hope this helps!


View solution in original post

6 REPLIES 6

harikrish_v
Mega Guru

Hi Jane,



You can store the Images under System Policy->Images. Once you have attached the image, SNC will point out how to use the image there itself.


You can do the HTML coding inside message field in the quick message.



image.jpg


Hope this helps. Pls mark this post as Answered if this solves your problem



Thanks & Regards,


Hari


Thank you for your note!   We did store images under System UI and tried to reference them with the simple source statement. However, this didn't work. I am unfamiliar with the mail script   tag. Here is our code - can you tell us where we would place this tag so that we do not have to reference the server?   Many thanks!



---------code------------------------------------------------



 


<p><img hspace="0" border="0" src="https://companynamedev.service-now.com/abase.jpgx" align="baseline" height="30" width="213" />


 


</p><p>Thank you for bringing this to our attention.   The issue with AnswerBase has been resolved. Please try the search again:


 


[insert link]</p><p>Please let us know if you have any questions or if we can be of further assistance.</p>


 


<p>Regards,


 


</p><p><strong>Knowledge Management Group</strong><br /><a href="mailto:know@mofo.com">know@companyname.com</a> | KNOW (x5669)</p>


 



 






------------------code------------------------------


Can you try this:-


<html>


<p><img src="contextual_help.pngx" width="73" height="72"   width="213" align="baseline"/>


</p><p>Thank you for bringing this to our attention.   The issue with AnswerBase has been resolved. Please try the search again:


[insert link]</p><p>Please let us know if you have any questions or if we can be of further assistance.</p>


<p>Regards,


</p><p><strong>Knowledge Management Group</strong><br /><a href="mailto:know@mofo.com">know@companyname.com</a> | KNOW (x5669)</p>


</html>



Its a little crude, but I hope you get the idea now.



Thanks & Regards,


Hari


Hi,



We tried this method first — but it evidently did not work and we had to add the full https address. From there we had to edit before moving to production which is our problem now. If the original simple method of including just the image name is supposed to work — we will need to explore why it doesn't work in our environment. Any ideas?