Skip to Content

Let end users download data from an embed

Turn on CSV, PDF and all-metrics downloads for an embedded dashboard.

Do this with your agent

embed-dashboard

Help me with this Databrain task: Let end users download data from an embed. Check the current dashboard, host app and guest token scope where relevant. Show the planned changes and how to verify them. Ask before applying changes.

Downloads in an embed are set by options on the embed code. Workspace settings have no download tab.

Download options

Add the attribute to the <dbn-dashboard> element:

AttributeWhat the end user gets
enable-download-csvCSV on each card’s menu. Needs raw download on for the workspace (below).
enable-email-csvThe CSV sent by email. Needs raw download on for the workspace.
enable-download-all-pdfExport As PDF for the whole dashboard
enable-download-all-metricsDownload Metrics in the dashboard menu: every card’s data in one ZIP
disable-download-pngRemoves PNG from each card’s menu
<dbn-dashboard
  token="GUEST_TOKEN"
  dashboard-id="your-dashboard-id"
  enable-download-csv="true"
  enable-download-all-pdf="true"
></dbn-dashboard>

<dbn-metric> accepts enable-download-csv, enable-email-csv and disable-download-png.

Turn on raw download for a workspace

CSV downloads send the file link by email, so they need report email set up first.

  1. Go to Data Studio > Data Apps, open the data app and select Embeds.

  2. Select Get snippet on a dashboard embed.

    Embeds table row with the Get snippet button highlighted.
    Open the embed snippet from the embed's row.
  3. Under Options for this embed > Downloads, find Download metrics.

    Options for this embed card, Downloads group, with Download metrics highlighted next to its enable-download-all-metrics attribute and Add to snippet.
    Download options list the attribute each one adds to the snippet.
  4. Next to Raw download is on for the workspace, select Turn on, then Turn on again to confirm.

    Raw download is not turned on for this workspace notice with the Turn on button highlighted.
    Turn on raw download for the whole workspace here.

Raw download is now on for the workspace. Each download link expires after 30 minutes. End users can send the file to up to 10 email addresses. Each client gets only its own rows.

Hide underlying data

View underlying data is on by default. To turn it off, open the embed’s access control and turn off View underlying data. See Choose what end users can do in an embed.

On this page