Get Last Completed Report Run
A Reporting API that returns the report definition and the ReportRunId of the latest completed report run by the current user in the last 60 days
Contact Zuora Global Support to enable this feature in your tenant. This feature is currently in development and is subject to change without advance notice.
The Get Last Completed Report Run Reporting API returns the report definition and the ReportRunId of the latest completed report run by the current user in the last 60 days.
The ReportRunId appears in the response as id. ReportRunId is a common input for many Reporting API calls. The ReportRunId value is used as an input parameter value to get the report run result data using either Get Report Data or Export Report RunExport Report Run.
If the current user did not run the report using Run a Report and the report was created by a different user, Get Last Completed Report Run will fail. For instance, Get Last Completed Report Run will fail if the latest completed report run is a scheduled run of a report that was created by a different user. In this case, Get Last Completed Report Run returns the following warning:
Request
Request parameter
Example
HTTPS request:
GET https://zconnectsandbox.zuora.com/api/rest/v1/reports/ff808081521b051c01521d9f81c70021/reportruns/latest
JSON response: