Knowledge Base Article

Automating the extraction and formatting of Sisense dashboard and widget scripts [Linux]

Sisense includes the capability to export all dashboard metadata in JSON format, both via the UI and via API. These include all metadata components of the dashboard and widgets, including widget and dashboard scripts. A common use case is to extract dashboard and widget scripts from one or more dashboard files, properly format JavaScript by converting escaped JSON strings into readable JavaScript, and remove default comment headers that are often present. This article provides a comprehensive Python script that automates extracting these scripts into separate files, formats them clearly, removes common default comments, organizes scripts by dashboard in separate folders, and adds a comment in each file indicating relevant details like the last viewed timestamp, widget type, and the URL to access the dashboard or widget.

How to Export Dashboards Dashboards can be exported from the Sisense UI through the main dashboard menu, which provides a downloadable JSON file containing the complete dashboard metadata.    ...
Dropdown menu with a yellow
Updated 06-04-2025