I am trying to create a simple python script to copy dashboards (these are user-defined dashboards), as well as their underlying Looks.
Basically I am reading the info from the “source” dashboard, and using the create_dashboard and/or update_dashboard API calls.
I am being stumped by a couple of issues:
- I can’t seem to get the references to Looks and layouts into the “copied” dashboard. I just end up with an empty dashboard. When I look at the Dashboard data structure, I notice that dashboard_layouts and dashboard_elements are marked as readonly, so it makes sense that it doesn’t use this info when creating/updating the dashboard. But is there a way to do this in the API?
- I can’t see how to use the API to copy dashboard-level filters. The dashboard-level filter info doesn’t seem to appear anywhere in the dashboard data structure?
Thanks for any clues you can provide…