Publish a Dashboard in the ServiceNow Service Portal

ASB1
Tera Contributor

I have a dashboard created, it contains several reports(over 10), interactive filters. It contains also reports that act as filter. I would like to publish it in the service portal, I have found  an oob widget for reports (in the designer), but not an oob widget for dashboard.  Does anyone know how to achieve what I need? 

1 ACCEPTED SOLUTION

Maik Skoddow
Tera Patron
Tera Patron

Hi @ASB 

the better approach would to design a portal page and place the already figured out report widgets there.

But if you insist on pulling the complete dashboard, then use the following workaround:

  1. Open the dashboard you want to display in the platform UI
  2. Open dashboard menu in top left and choose "Copy Dashboard URL"
  3. Add an HTML widget to your Service Portal page
  4. Hover over the widget instance and click the "Edit" icon
  5. Switch to source code view
  6. Add code:
<iframe style="overflow: hidden; height: 1000px; width: 100%;" src="URLFromStep2Here" width="100%" height="100%" frameborder="0"></iframe>

Make sure you use a relative URL in the iframe src attribute, so:

"/$pa_dashboard.do?sysparm_dashboard=<SYS ID OF DASHBOARD>"

Kind regards
Maik

If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.

View solution in original post

2 REPLIES 2

Maik Skoddow
Tera Patron
Tera Patron

Hi @ASB 

the better approach would to design a portal page and place the already figured out report widgets there.

But if you insist on pulling the complete dashboard, then use the following workaround:

  1. Open the dashboard you want to display in the platform UI
  2. Open dashboard menu in top left and choose "Copy Dashboard URL"
  3. Add an HTML widget to your Service Portal page
  4. Hover over the widget instance and click the "Edit" icon
  5. Switch to source code view
  6. Add code:
<iframe style="overflow: hidden; height: 1000px; width: 100%;" src="URLFromStep2Here" width="100%" height="100%" frameborder="0"></iframe>

Make sure you use a relative URL in the iframe src attribute, so:

"/$pa_dashboard.do?sysparm_dashboard=<SYS ID OF DASHBOARD>"

Kind regards
Maik

If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.

John Zhang1
Kilo Patron
Kilo Patron

Hi ASB

My YouTube video-https://www.youtube.com/watch?v=w7tYLnF-Jnk&t=2s has introduced multiple approach for Dashboard configuring to Service Portal.

Let me know if you have any questions.

 

 If my reply is Helpful/Correct, please mark the answer as correct.