We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Platform Analytics Dashboard in the Portal

Wybren1
Tera Guru

I wanted to share a small build I did to get the platform analytics in the Portal.

Inspired by the Playbooks within the Portal. I really wanted the new powerful Platform Analytics dashboards within the portal, including "clicking" that will stay within the portal itself and redirects to the page you want including parameters.

 

Example pageExample page
I've given some instruction text with a platform analytics dashboard, and also including an embedded widget option.

Available here:
https://developer.servicenow.com/connect.do#!/share/contents/8949624_platform_analytics_experience_i...

Some notes
- I have NOT tested this with a custom UI Builder page within a dashboard
- When installing new version and you still have 1.0 just accept all updates (You can iqnore the meta data)

Updates to version 1.1, where I fixed the component.

25 REPLIES 25

Yingbo Wang
Tera Contributor

Thank you for providing this solution. We are currently upgrading to the Zurich Family Release, and Platform Analytics. We are utilizing this solution to display dashboards within the Employee Center. 

 

However, when opening an incident link from a dashboard in the Employee Center, the URL appears as /esc?id=form&table=sc_req_item&sys_id=undefined due to event.data.recordId being null. Could you please advise on how to retrieve the value for event.data.recordId?

 

Additionally, would it be possible to adjust the script so that the Incident link opens the record within the iframe as it does in the legacy dashboards,  rather than as /esc?id=form&table=sc_req_item&sys_id=undefined? Thank you. 

The iframe URL for the legacy dashboards is: /$pa_dashboards_overview.do;

The iframe URL for the dashboards in this solution is: "/now/platform-analytics-portal/dashboard/" + c.data.dashboard;