How to implement a dashboard in a portal

bonsai
Mega Sage

I'd like to implement a dashboard in my CSM portal.

But I'm not sure how to go about it.

Are there any useful widgets?

 

bonsai_0-1755501947471.png

 

24 REPLIES 24

Bhuvan
Kilo Patron

@bonsai 

 

Follow steps from below post,

 

https://www.servicenow.com/community/developer-forum/how-to-add-dashboard-in-service-portal-page/m-p...

 

  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 a 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>

If this helped to answer your query, please accept the solution and close the thread.

 

Thanks,

Bhuvan

I created an HTML widget using the following source code, but it didn't work:

 

<p><iframe style="overflow: hidden; height: 1000px; width: 100%;" src="/$pa_dashboard.do?sysparm_dashboard=f09e7b7ed4128fa43f8582c9e9a65253"width="100%" height="100%" frameborder="0"></iframe></p>

 

@bonsai Please check this question , someone implemented the same requirement.

https://www.servicenow.com/community/developer-forum/increase-the-size-of-dashboard-on-servicenow-po... 

 

Try below:

 

<iframe style="overflow: hidden; height: 1000px; width: 100%;" src="/$pa_dashboard.do?sysparm_dashboard=f09e7b7ed4128fa43f8582c9e9a65253" </iframe>

Raghav
MVP 2023

I used this code but it didn't work.

bonsai
Mega Sage

I'm starting to understand why I can't display the dashboard.

I was able to implement the dashboard created in the "pa_dashboards" table in the portal using the method you taught me.

However, the dashboard I want to display is the one created in the "par_dashboard" table.

Is there a way to display a dashboard created in the "par_dashboard" table?