This is an unsupported supplemental Sisense script. No warranty is made or implied. Some technical experience with the command line recommended. The code is open source so you are free to modify as you wish.
Have you ever wanted to automate the export of dashboards to a file folder? Well you can with the Sisense REST API.
This python script can be configured to export any number of dashboards to pdf, png, or dashfiles and it supports all query parameters. Just configure and schedule the program to run at the desired cadence.
A full list of options for the API calls is here.
To run on a schedule, add the call to a bat file and use your windows scheduler to set the file to run at set times.
In the zip file linked you will find
backup_dashboards.py - The python script that does the heavy lifting. This requires the installation of the Python 3.0+ environment.
BackupDashboards.md - A readme with further information on how to use the script
example_dash.yaml - An example config for exporting dash files
example_png.yaml - An example config for exporting png files
example_pdf.yaml - An example config for exporting pdfs files
Update 07/19/2019: Host is now configurable. Better error logging. See readme for more info.
Update 07/18/2019: Program now supports pulling of dashboards via API. See readme in zip file for details.
Please sign in to leave a comment.