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.

Get report URL for use in an iFrame

Michael Gruber
Tera Contributor

Team,

 

I want to display a ServiceNow report into either;

 

a - A SharePoint page iFrame; or

b - A ServiceNow iFrame widget on a dashboard.

 

For the purpose of displaying multiple reports on the 1 page. I saw the following article, but it's not clear how to get the published report URL

 

https://www.servicenow.com/community/developer-forum/report-in-iframe-without-buttons-etc/m-p/172253...

 

regards

Michael

1 ACCEPTED SOLUTION

Hayo Lubbers
Kilo Sage

Hi @Michael Gruber ,

 

Getting the URL for a published report can be done by opening the report from the sys_report list.

And you need to have the publishing available.

 

So:

  1. Is system property glide.report.published_reports.enabled active?
    Make sure only the reports you really want to have published are published (sys_report filter on is published).
  2. When opening the report, you get the information regarding the public URL in a message:
    HayoLubbers_0-1734352735595.png

     

In the end, the URL is the same (you already have it), except the sys_id from the report.

 

Regards,

Hayo

View solution in original post

1 REPLY 1

Hayo Lubbers
Kilo Sage

Hi @Michael Gruber ,

 

Getting the URL for a published report can be done by opening the report from the sys_report list.

And you need to have the publishing available.

 

So:

  1. Is system property glide.report.published_reports.enabled active?
    Make sure only the reports you really want to have published are published (sys_report filter on is published).
  2. When opening the report, you get the information regarding the public URL in a message:
    HayoLubbers_0-1734352735595.png

     

In the end, the URL is the same (you already have it), except the sys_id from the report.

 

Regards,

Hayo