No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
Execute Sync
Resource URL
Runs a report immediately with or without changing filters and returns the latest summary data with or without details for your level of access.
| Data | URL |
|---|---|
| Summary | |
| Summary with detail | |
Formats
JSON
HTTP Methods
| Method | Description |
|---|---|
| GET | Get report results. |
| POST | Get specific results by passing filters in the report metadata. |
POST Request Body
| Property | Type | Description |
|---|---|---|
| name | String | Report name. |
| id | String | Unique report ID. |
| 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. |
| reportFormat | String | Format of the report. Value can be:
|
| developerName | String | Report API name. |
| 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. |
| aggregates | Array of strings | Unique identities for summary or custom summary formula fields
in the report. For example:
|
| groupingsDown | Groupings down[] | Unique identities for each row grouping in a report. The identity
is:
|
| groupingsAcross | Groupings across[] | Unique identities for each column grouping in a report. The
identity is:
|
| 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. |
| detailColumns | Array of strings | Unique API names for the fields that have detailed data. |
| historicalSnapshotDates | Array of strings | List of historical snapshot dates. |
Response Body
| Property | Type | Description |
|---|---|---|
| hasDetailRows | Boolean | When true,the fact map returns values for both summary level and record level data. When false, the fact map returns summary values. |
| attributes | Attributes | Key report attributes and child resource URLs. |
| reportMetadata | Report metadata | Unique identifiers for groupings and summaries. |
| reportExtendedMetadata | Report extended metadata | Additional information about columns, summaries, and groupings. |
| groupingsDown | Groupings down | Collection of row groupings, keys, and their values. |
| groupingsAcross | Groupings across | Collection of column groupings, keys, and their values. |
| allData | Boolean | When True, all report results are returned. When False, results are returned for the same number of rows as a report run in Salesforce. |
| factMap | Fact map | Summary level data or both summary and detailed data for each
row or column grouping. Detailed data is available if hasDetailRows is true. Each row or column grouping is represented by combination of row and column grouping keys defined in Groupings down and Groupings across. |
- Attributes
-
Property Type Description describeUrl String Resource URL to get report metadata. instancesUrl String Resource URL to run a report asynchronously. The report can be run with or without filters to get summary or both summary and detailed data. Results of each instance of the report run are stored under this URL. type String API resource format. reportName String Display name of the report. reportId String Unique report ID. - Groupings down
-
Property Type Description groupings Groupings[] Information for each row grouping as a list. - Groupings across
-
Property Type Description groupings Groupings[] Information for each column grouping as a list. - Groupings
-
Property Type Description value String Value of the field used as a row or column grouping. The value depends on the field’s data type. - Currency fields:
- amount: Of type currency. Value of a data cell.
- currency: Of type picklist. The ISO 4217 currency code, if available; for example, USD for US dollars or CNY for Chinese yuan. (If the grouping is on the converted currency, this is the currency code for the report and not for the record.)
- Picklist fields: API name. For example, a custom picklist field, Type of Business with values 1, 2, 3 for Consulting, Services, and Add-On Business, has 1, 2, or 3 as the grouping value.
- ID fields: API name.
- Record type fields: API name.
- Date and time fields: Date or time in ISO-8601 format.
- Lookup fields: Unique API name. For example, for the Opportunity Owner lookup field, the ID of each opportunity owner’s Chatter profile page can be a grouping value.
key String Unique identity for a row or column grouping. The identity is used by the fact map to specify data values within each grouping. label String Display name of a row or column grouping. For date and time fields, the label is the localized date or time. groupings Array Second or third level row or column groupings. If there are none, the value is an empty array. dategroupings Array Start date and end date of the interval defined by date granularity. - Currency fields:
- Fact map
-
Property Type Description rows Data cells[] Array of detailed report data listed in the order of the detail columns provided by the report metadata. aggregates Aggregates[] Summary level data including record count for a report. - Data cells
-
Property Type Description value Detail column info data type The value of a specified cell. label String Display name of the value as it appears for a specified cell in the report. - Aggregates
Examples
See this sample of a GET request to fetch report data.
See this sample of a POST request with filters to get specific report results on the fly.
- See these examples of fact map keys that represent report data from the user interface.