Newer Version Available

This content describes an older version of this product. View Latest

Analytics Download

Download a .png image of a dashboard, lens, Lightning Experience dashboard or report, or download a .pdf file of a dashboard or lens. Downloads are requested via browser calls.

Syntax

URI
<domain>/analytics/download/<assetType>/<Id>.<downloadType>

Downloads are requested by entering the URI in a browser address bar.

Use of this API from Apex isn’t supported.

Note

Formats
.png or .pdf
Parameters
Parameter Description
assetType Required. Specifies what type of Analytics asset to download. Valid values are:
  • dashboard
  • lens
  • lightning-dashboard
  • report
Id

Required. Specifies the Analytics asset id to download.

downloadType Required. Specifies what file type to download the Analytics asset as. Valid values are:
  • .png
  • .pdf

For Lightning Experience reports, the request only works with .png and only if the report has a chart. If .pdf is used or the report doesn’t have a chart, the request returns an error.

Note

Response Body

The response body is binary data of the .png or .pdf representation of the Analytics asset.