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.

Showing performance dashboard in service portal

TiyasiC
Tera Contributor

Hi,

 

I am trying to embed a dashboard into ServiceNow portal widget like using iframe exactly like how it is given here:

https://www.servicenow.com/community/now-platform-articles/how-to-publish-dashboards-into-portal-for...

But, it is redirecting to backend dashboard and it is not staying in the portal.Please provide a solution for this.

HTML:

<div class="iframe-conatainer">
<iframe style="overflow: auto; height: 750px; width: 100%;"
src="{{c.data.dashboardLink}}">
</iframe>
</div>

 

SERVER:

(function() {
/* populate the 'data' object */
/* e.g., data.table = $sp.getValue('table'); */
data.dashboardLink = "/$pa_dashboard.do?sysparm_dashboard=b5c717189fa45650416bf275ae24ab02";
})();

1 REPLY 1

pvn
Tera Contributor

@TiyasiC Did you get solution for this?