ReportInstance Class

Returns an instance of a report that was run asynchronously. Retrieves the results for that instance.

Reports

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.

  • getId()

    Returns the unique ID for an instance of a report that was run asynchronously.

  • getOwnerId()

    Returns the ID of the user who created the report instance.

  • getReportId()

    Returns the unique ID of the report this instance is based on.

  • 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.

  • getRequestDate()

    Returns the date and time when an instance of the report was run. Date and time information is in ISO-8601 format.

  • getStatus()

    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

  • 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.