Newer Version Available
Examples: Reports REST API Resources
The Reports and Dashboards REST API is designed to let you query report data easily.
As of API version 43.0, if your org turns on the Lightning Experience joined report beta, then you can use the Reports REST API to work with joined reports. For more information about the Lightning Experience joined report beta, including how to opt in, see Enable Lightning Joined Reports (Beta) in Salesforce help.
A report is a joined report when reportFormat is MULTI_BLOCK.
As you get ready to work with joined reports in the REST API, take note of these beta limitations and known issues.
- If you make a POST or PATCH request on a joined report to edit the
report, only some properties can be edited:
- hasDetailRows
- hasRecordCount
- showSubtotals
- showGrandTotal
- If you make a POST or PATCH request on a joined report and try to change reportFormat then you get a success code but reportFormat isn’t updated.
- You can’t change reportFormat to MULTI_BLOCK.
-
Run Reports Synchronously or Asynchronously.
Run a report immediately or asynchronously to get summary data with or without details. We recommend that you run reports asynchronously to avoid report timeouts and other API limits.
-
Get Report Metadata.
Get information about fields in the report and report type. This includes information about fields used for report groupings, summaries, detailed data, and filters.
-
List Asynchronous Runs of a Report.
Get a list of all instances of a report run asynchronously.
-
Filter Reports on Demand.
Get specific data back by running a report with filter changes in the metadata.
-
List Recently Viewed Reports
Get most recently viewed reports that you have permission to access.
-
Decode the Fact Map.
Get a visualized view of your report data.
-
Save Changes to Reports
Save changes to reports.
-
Clone Reports
Make copies of existing reports.
-
Delete Reports
Clean up unused and obsolete reports.