Skip to main content
Nov 23, 2018 2:27 PM UTC
Solved

Import/export dashboards

Hi there,

 

Is it possible to export a dashboard previously made to XML? Once I have made adjustments I would like to import it back. This will also be used when moving dashboards from our development to our production environment.

awalshAnswer
Nov 23, 2018 5:43 PM UTC

You can get the xml for a dashboard layout using the --showlayout option on the im viewdashboard command:

im viewdashboard --showLayout "Administrator Dashboard" > layout_admin_dashboard.xml

You will need to edit the output to remove the details at the beginning and end so you only have the xml contents. And then you can edit the xml.  For more information on the xml format see the Help Center under Creating a Dashboard with XML.

 

When creating or editing a dashboard, you can give the layout xml file:

im createdashboard --layoutFile=layout_admin_dashboard.xml --description="copy of admin" --name=AdminCopy

1 reply

awalshAnswer
Nov 23, 2018 5:43 PM UTC

You can get the xml for a dashboard layout using the --showlayout option on the im viewdashboard command:

im viewdashboard --showLayout "Administrator Dashboard" > layout_admin_dashboard.xml

You will need to edit the output to remove the details at the beginning and end so you only have the xml contents. And then you can edit the xml.  For more information on the xml format see the Help Center under Creating a Dashboard with XML.

 

When creating or editing a dashboard, you can give the layout xml file:

im createdashboard --layoutFile=layout_admin_dashboard.xml --description="copy of admin" --name=AdminCopy