ReportInstance Class
Returns an instance of a report that was run asynchronously.
Retrieves the results for that instance.
Namespace
ReportInstance Methods
The following are methods for ReportInstance. All are instance methods.
getCompletionDate()
Returns the date and time when the instance of the report
finished running. The completion date is available only if the report
instance ran successfully or couldn’t be run because of an
error. Date and time information is in ISO-8601 format.
Syntax
public Datetime getCompletionDate()
Return Value
Type: Datetime
getId()
Returns the unique ID for an instance of a report that
was run asynchronously.
Syntax
public Id getId()
Return Value
Type: Id
getOwnerId()
Returns the ID of the user who created the report instance.
Syntax
public Id getOwnerId()
Return Value
Type: Id
getReportId()
Returns the unique ID of the report this instance is based
on.
Syntax
public Id getReportId()
Return Value
Type: Id
getReportResults()
Retrieves results for an instance of an asynchronous report.
When you request your report, you can specify whether to summarize
data or include details.
Syntax
public Reports.ReportResults getReportResults()
Return Value
Type: Reports.ReportResults
getRequestDate()
Returns the date and time when an instance of the report
was run. Date and time information is in ISO-8601 format.
Syntax
public Datetime getRequestDate()
Return Value
Type: Datetime
getStatus()
Returns the status of a report.
Syntax
public String getStatus()
Return Value
Type: String
Usage
- New if the report run was recently triggered through a request.
- Success if the report ran.
- Running if the report is being run.
- Error if the report run failed. The instance of a report run can return an error if, for example, your permission to access the report was removed after you requested the run.