Platform Analytics Dashboard in the Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2024 05:22 AM - edited 06-16-2025 07:32 AM
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 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.
- Labels:
-
Platform Analytics
-
Service Portal
- 11,296 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago - last edited a month ago
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;

