Salesforce - Reports API
-
getRecentReports - Gets up to 200 of the reports you most recently viewed.
-
getReportDescription - Retrieves report description.
-
executeSyncReport - Runs a report synchronously.
-
executeAsyncReport - Runs a report asynchronously.
-
getReportInstances - Returns a list of instances for a report that you requested to be run asynchronously.
-
getReportResults - Retrieves results for an instance of a report run asynchronously.
Report List
getRecentReports
Gets up to 200 of the reports you most recently viewed.
Output
Type:
List<RecentReport>
Describe Report
getReportDescription
Retrieves the report, report type, and related metadata for a report, either in a tabular or summary or matrix format.
| Parameter | Type | Description | Default | Required |
|---|---|---|---|---|
|
|
|
Id of Report |
Required if not supplied in body |
|
|
Body |
|
Id of Report |
Required if not supplied in
|
Output
Type:
ReportDescription
Execute Sync
executeSyncReport
Runs a report synchronously with or without changing filters and returns the latest summary data.
| Parameter | Type | Description | Default | Required |
|---|---|---|---|---|
|
|
|
Id of Report |
Required if not supplied in body |
|
|
|
|
Whether to include details |
false |
|
|
|
|
Optionally, pass ReportMetadata here instead of body |
||
|
Body |
|
If supplied, will use instead of
|
Required if not supplied in
|
Output
Type:
AbstractReportResultsBase
Execute Async
executeAsyncReport
Runs an instance of a report asynchronously with or without filters and returns the summary data with or without details.
| Parameter | Type | Description | Default | Required |
|---|---|---|---|---|
|
|
|
Id of Report |
Required if not supplied in body |
|
|
|
|
Whether to include details |
false |
|
|
|
|
Optionally, pass ReportMetadata here instead of body |
||
|
Body |
|
If supplied, will use instead of
|
Required if not supplied in
|
Output
Type:
ReportInstance
Instances List
getReportInstances
Returns a list of instances for a report that you requested to be run asynchronously. Each item in the list is treated as a separate instance of the report.
| Parameter | Type | Description | Default | Required |
|---|---|---|---|---|
|
|
|
Id of Report |
Required if not supplied in body |
|
|
Body |
|
If supplied, will use instead of
|
Required if not supplied in
|
Output
Type:
List<ReportInstance>
Instance Results
getReportResults
Contains the results of running a report.
| Parameter | Type | Description | Default | Required |
|---|---|---|---|---|
|
|
|
Id of Report |
Required if not supplied in body |
|
|
|
|
Id of Report instance |
x |
|
|
Body |
|
If supplied, will use instead of
|
Required if not supplied in
|
Output
Type:
AbstractReportResultsBase