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.

Dashboards and Content Blocks

kemmy1
Tera Guru

Our customer wants an "under construction" image on one of the tabs of a dashboard, so I used the Content Blocks Widget (and selected the *New Static HTML" and added a title and an image.  My customer can see the title but not the image.  What else do I need to do?

We have Kingston.

Lisa

1 ACCEPTED SOLUTION

Abhijeet Upadhy
Tera Expert

Hello

 

Create a dynamic content block and paste the following line between jelly header and footer.

 

<html>

<body>

<img src="name of image with extension you loaded in the sys_db_image table" width="100%" />

</body>

</html>

 

Thanks

Abhijeet Upadhyay

View solution in original post

3 REPLIES 3

Abhijeet Upadhy
Tera Expert

Hello

 

Create a dynamic content block and paste the following line between jelly header and footer.

 

<html>

<body>

<img src="name of image with extension you loaded in the sys_db_image table" width="100%" />

</body>

</html>

 

Thanks

Abhijeet Upadhyay

Thanks Abhijeet!  What I ended up having to do is add my image to the db_image table and update the html to <img src="name of image with extension you loaded in the sys_db_image table" width="100%" />

 

When you add it to the Static HTML Content Block it creates an attachment and the html is pointing to the sys_id of the record in the sys_attachment table.  Not sure why that doesn't work.  I think if you add it to the html, it should add it to the db_image table as well.

Wendy19
Tera Contributor

Every time I save the content block, the html and body tags get ripped out. Help??