Newer Version Available
Report List
Resource
Displays a list of up to 200 tabular, matrix, or summary reports that you recently viewed. To get a full list of reports by format, name, and other fields, use a SOQL query on the Report object. The resource can also be used to make a copy of a report.
| Task | URL |
|---|---|
| List reports |
|
| Copy report |
|
Formats
JSON
HTTP methods
| Method | Description |
|---|---|
| GET | List of reports that were recently viewed by the API user. |
| POST | Makes a copy of a report. |
GET Response body
| Property | Type | Description |
|---|---|---|
| name | String | Report display name. |
| id | String | Unique report ID. |
| url | String | URL that returns report data. |
| describeUrl | String | URL that retrieves report metadata. |
| instancesUrl | String | Information for each instance of the report that was run asynchronously. |
POST Response body
| Property | Type | Description |
|---|---|---|
| aggregates | Array of strings | Unique identities for summary or custom summary
formula fields in the report. For example:
|
| currency | String | Report currency, such as USD, EUR, GBP, for an organization that has Multi-Currency enabled. Value is null if the organization does not have Multi-Currency enabled. |
| detailColumns | Array of strings | Unique API names for the fields that have detailed data. |
| developerName | String | Report API name. |
| division | String |
Determines the division of records to include in the report. For example, West Coast and East Coast. Available only if your organization uses divisions to segment data and you have the “Affected by Divisions” permission. If you do not have the “Affected by Divisions” permission, your reports include records in all divisions. |
| folderId | String | Folder ID. |
| groupingsAcross | Groupings across[] | Unique identities for each column grouping in a
report. The identity is:
|
| groupingsDown | Groupings down[] | Unique identities for each row grouping in a report.
The identity is:
|
| hasDetailRows | Boolean | Indicates whether to include detailed data with the summary data. |
| hasRecordCount | Boolean | Indicates whether the report shows the record count. |
| historicalSnapshotDates | Array of strings | List of historical snapshot dates. |
| id | String | Unique report ID. |
| name | String | Display name of the report. |
| reportBooleanFilter | String | Logic to parse custom field filters. Value is null when filter logic
is not specified. This is an example of a report filtered to show opportunities for accounts that are either of customer or partner type OR their annual revenue exceeds 100K AND they are medium or large sized businesses. The filters are processed by the logic, “(1 OR 2) AND 3.” |
| reportFilters | Filter details[] | List of each custom filter in the report along with the field name, filter operator, and filter value. |
| reportFormat | String | Format of the report. Value can be:
|
| reportType | Report type | Unique API name and display name for the report
type. type: Of type string, this is the unique identifier of the report type. label: Of type string, this is the display name of the report type. |
| scope | String | Defines the scope of the data on which you run the report. For example, you can run the report against all opportunities, opportunities you own, or opportunities your team owns. Valid values depend on the report type. |
| sortBy | String | API name of the field on which the report is sorted and the direction of the sort (asc or desc). |
| standardDateFilter | Array of strings | Standard date filters available in reports. Each
standard date filter contains the following
properties: column: API name of the date field on which you filter the report data. durationValue: The range for which you want to run the report. The value is a date literal or 'CUSTOM.' startDate: Start date. endDate: End date. |
| standardFilters | Array of strings | List of filters that show up in the report by default. The filters vary by report type. For example, standard filters for reports on the Opportunity object are Show, Opportunity Status, and Probability. This list appears as name-value string pairs. |
Example
See a sample GET request to get a list of reports.
See a sample POST request to make a copy of a report.