Print all content of each dashboard widget to an email export
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2024 06:05 AM
Hi team,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2024 08:40 PM
Hi @pbusch ,
On a previous contract, I built a widget that displayed a custom report; of which that widget was then added to a dashboard,
The part you might interested in was that each report widget contained a button that started a download of PDF. The PDF was generated by querying the DOM and then sending the resulting "outerHTML" to ServiceNow's PDF generator utility. The resulting PDF looked great because we were also passing in the necessary styles; of which the custom report looked near 1 to 1 with the Dashboard version.
So... I think you could do something similar where you create a dedicated widget that contained a button called Export Dashboard to Email. Clicking the button would then query the DOM to get the necessary HTML... then send that to mail script.
Hopefully this provided some new ideas.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2024 03:21 AM
Hi Kris,
That is a nice take to this, and may be the only way to accomplish the Requirement here. I'll take it under consideration.
Do share if you have any of the jellyscript code to accomplish that.
Thanks,
Pat