Analytics Download

Download a .png image of a CRM Analytics dashboard or lens, or Lightning Experience dashboard or report. Download a .pdf file of a CRM Analytics dashboard or lens. Request downloads via browser calls.

Syntax 

URI: domain/analytics/download/assetType/assetId.downloadType

To request a download, enter the URI in a browser address bar.

We don’t support the use of this API from Apex.

Note

Formats: .png or .pdf

Parameters

ParameterDescription
assetTypeRequired. Specifies what type of Analytics asset to download. Valid values are:
  • dashboard
  • lens
  • lightning-dashboard
  • report
assetIdRequired. Specifies the Analytics asset id to download.
downloadTypeRequired. Specifies what file type to download the Analytics asset as. Valid values are:
  • png
  • pdf

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

Note

Query Parameters

ParameterDescription
includeDataOptional. Indicates whether to include that tabular widget data (true) or not(false).
pageIdOptional. Specifies the Id for a dashboard page to download.
pageSizeOptional. Specifies page size to download. Valid values are:
  • A3
  • A4
  • LEGAL
  • LETTER
savedviewIdOptional. Specifies the Id for a dashboard saved view to download.

For Lightning Experience reports, the request works only with png and only if the report has a chart. If you use pdf or if 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.

For limits on columns and pages in .pdf files, see Analytics Download Limits.