Image issue when using the HTML Portal Widget

Matt Lodge
Tera Expert

I've added a HTML widget to our service portal and I have uploaded an image to the widget. The page is active and I can see the image on the portal, however, other users cannot see the image, they see a white cross on a black background.

The HTML widget does not seem to allow you to add the image to the image library, nor can you retrieve uploaded images from the image library, into the HTML widget.

I have had this working before but I cannot remember how. 

This is what the page looks like for me:

find_real_file.png

And this is what the same page looks like for another user:

find_real_file.png

Any help would be appreciated.

1 ACCEPTED SOLUTION

Ivano B
ServiceNow Employee
ServiceNow Employee

Hi Matt

Navigate to the sys_attachment table and  navigate to Configure > Security Rules

find_real_file.png

In the next list you have all the access controls available to execute the CRUD for the table. Group by Operation and focus on the READ ones

find_real_file.png

Create a new Access Control on READ similar to the next image

find_real_file.png

 

This will allow people to see any image or attachment used by service portal instances in general

About access controls..

  1. First of all you can release/restrict content so be very careful or you can show something that user are not allowed OR hide something that they can see.
  2. In order to create Access Controls you need to elevate your role to security admin

find_real_file.png

 

Cheers

R0b0

View solution in original post

8 REPLIES 8

SanjivMeher
Kilo Patron
Kilo Patron

How did you build this and why did you use html widget?

Do you have option to use link-button widget instead?


Please mark this response as correct or helpful if it assisted you with your question.

Hi Sanjiv

So I've build a new portal page that will effectively be a landing page whereby you can navigate to other Knowledge content held within ServiceNow. The aim is to have it a little bit like an intranet where our colleagues can go to navigate to different Policy information in a more visual way by having tiles that they click on.

Miguel Donayre
ServiceNow Employee
ServiceNow Employee

If you want to use the "add picture" feature in the HTML edit tool, you can always use a create a new Knowledge article and add the picture in the article body the way you want you to want it. Once you are done hit the source code button and copy the code. Now take that code and paste it in the HTML widget. 

Ivano B
ServiceNow Employee
ServiceNow Employee

Hi Matt

The problem is the access to the sys_attachment table. 

As Admin you have full access, no problem for you.

Unfortunately it's not the same for the other users.

You can think to include a new Access Control to release attachment for a specific widget instance.

That's going to work .

 

Cheers

R0b0