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.
ScoreCard Class
Represents a Real Time Reporting (RTR) report scorecard component. This
class extends the ReportComponent class.
Namespace
Usage
The RTRReportResult.ScoreCard class is accessible outside of the managed package.
Example
Here’s an example of how to extract the ScoreCard data from the RTRReportResult
object.
1// Extract the ScoreCard from the result
2// - The component name must match its 'uimapping' name
3// - The result must be casted to the correct type.
4cgcloud.RTRReportResult.ScoreCard scoreCard = (cgcloud.RTRReportResult.ScoreCard)
5 reportResult.getComponent('ScoreCard');
6
7// Extract KPI data. We assume the specified KPI's are in the configured scorecard
8Decimal kpiValue = scoreCard.getValue('ProPlanIncrVolume');
9
10system.debug('Value: ' + kpiValue);