Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

ReportFact Class

Contains the fact map for the report, which represents the report’s data values.

Namespace

Reports

Usage

ReportFact is the parent class of ReportFactWithDetails and ReportFactWithSummaries. If includeDetails is true when the report is run, the fact map is a ReportFactWithDetails object. If includeDetails is false when the report is run, the fact map is a ReportFactWithSummaries object.

ReportFact Methods

The following are methods for ReportFact. All are instance methods.

getAggregates()

Returns summary-level data for a report, including the record count.

Syntax

public LIST<Reports.SummaryValue> getAggregates()

Return Value

Type: List<Reports.SummaryValue>

getKey()

Returns the unique identifier for a row or column grouping. This identifier can be used to index specific data values within each grouping.

Syntax

public String getKey()

Return Value

Type: String