ReportInstance Class
Returns an instance of a report that was run asynchronously. Retrieves the results for that instance.
The following are methods for ReportInstance. All are instance methods.
-
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.
-
Returns the unique ID for an instance of a report that was run asynchronously.
-
Returns the ID of the user who created the report instance.
-
Returns the unique ID of the report this instance is based on.
-
Retrieves results for an instance of an asynchronous report. When you request your report, you can specify whether to summarize data or include details.
-
Returns the date and time when an instance of the report was run. Date and time information is in ISO-8601 format.
-
Returns the status of a report.
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.
public Datetime getCompletionDate()
Type: Datetime
Returns the unique ID for an instance of a report that was run asynchronously.
public Id getId()
Type: Id
Returns the ID of the user who created the report instance.
public Id getOwnerId()
Type: Id
Returns the unique ID of the report this instance is based on.
public Id getReportId()
Type: Id
Retrieves results for an instance of an asynchronous report. When you request your report, you can specify whether to summarize data or include details.
public Reports.ReportResults getReportResults()
Type: Reports.ReportResults
Returns the date and time when an instance of the report was run. Date and time information is in ISO-8601 format.
public Datetime getRequestDate()
Type: Datetime
Returns the status of a report.
public String getStatus()
Type: String
Newif the report run was recently triggered through a request.Successif the report ran.Runningif the report is being run.Errorif 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.