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.

ReportFactWithDetails Class

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

Namespace

Reports

Usage

The ReportFactWithDetails class extends the ReportFact class. A ReportFactWithDetails object is returned if includeDetails is set to true when the report is run. To access the detail values, you’ll need to cast the return value of the ReportResults.getFactMap method to a ReportFactWithDetails object.

ReportFactWithDetails Methods

The following are methods for ReportFactWithDetails. 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

getRows()

Returns a list of detailed report data in the order of the detail columns that are provided by the report metadata.

Syntax

public LIST<Reports.ReportDetailRow> getRows()

Return Value

Type: List<Reports.ReportDetailRow>