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-dashboardHelp 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:
| Attribute | What the end user gets |
|---|---|
enable-download-csv | CSV on each card’s menu. Needs raw download on for the workspace (below). |
enable-email-csv | The CSV sent by email. Needs raw download on for the workspace. |
enable-download-all-pdf | Export As PDF for the whole dashboard |
enable-download-all-metrics | Download Metrics in the dashboard menu: every card’s data in one ZIP |
disable-download-png | Removes 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.
-
Go to Data Studio > Data Apps, open the data app and select Embeds.
-
Select Get snippet on a dashboard embed.

Open the embed snippet from the embed's row. -
Under Options for this embed > Downloads, find Download metrics.

Download options list the attribute each one adds to the snippet. -
Next to Raw download is on for the workspace, select Turn on, then Turn on again to confirm.

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.