Is there a way to embed or iframe a ServiceNow dashboard into another application (Jive)?

Fernando Gois
Tera Contributor

We received a request to have a have a ServiceNow dashboard displayed/inserted into a JIVE application.

Has anyone seen this work? In other words, is it possible, that from a JIVE page, have an iframe or some embed html to display a Servicenow Dashboard?

I ran into some community articles asking the same thing for published reportings and Service Portal widgets but due to security reasons this is not possible. Even within Jive communities, the same security constraints come up. It looks like ServiceNow uses X-frame attributes (X-Frame-Options: SAMEORIGIN) which won't allow this embed display to happen.

But I wonder if anyone has seen it working.

IT Service Management     Performance Analytics and Reporting

Thanks.

1 ACCEPTED SOLUTION

Hi Fernando, great question. You would need to encode the image into a base64 string to pass successfully in JSON.


I don't believe you can request content type like in your example.


View solution in original post

4 REPLIES 4

Daryll Conway
Giga Guru

You need to setup a webhook so that you can cross origins.


Another way would be to send/request the data via REST and reformat it on the receiving JIVE page.


Thank you Daryll, for the webhook idea. I wasn't familiar with the concept and did some research on this topic.



Let me ask you one more question. Reading the articles about webhook setup, it appears the format taken for HTTP Post is JSON.


Since our requirement is asking for "displaying a dashboard" in the outside application (Jive), is there a way to pass the whole "graphical/picture" of the dashboard to the receiving application? Or would we be looking at something similar to the send/request data via REST with reformatting (into graphics) on the receiving Jive page?



Thanks again.


Hi Fernando, great question. You would need to encode the image into a base64 string to pass successfully in JSON.


I don't believe you can request content type like in your example.


Thank you Daryll.



We started to look into a more simplistic solution for this requirement. Basically I think we will go with a redirect from Jive to a Service Portal page where we would then display the dashboards in widgets.



Thanks.


Fernando Gois