---
schema_version: "1"
id: 4fb2351aa07b76f041eb08d1df5db946abb94876171e527d6216ed4f89f8e107
title: RTRReportResult.ScoreCard
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/ScoreCard_class.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/ScoreCard_class.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 5b1384b13720cca39029a9341a7168bd69bc01f6002292690cd50c101d85c4db
description: This class represents an RTR Report UI ScoreCard component.
---
# RTRReportResult.ScoreCard

This class represents an RTR Report UI ScoreCard component.

The RTRReportResult.ScoreCard class extends RTRReportResult.ReportComponent.

The supported modifiers are global and virtual.

## Namespace

cgcloud

## Supported Methods

<table class="featureTable sort_table" summary="">
          <caption><span class="tablecap">Table 1. RTRReportResult.ScoreCard Supported Methods</span></caption>



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d37037e86">Method signature</th>

              <th class="featureTableHeader  " id="d37037e89">Description</th>

              <th class="featureTableHeader  " id="d37037e92">Version</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d37037e86" data-title="Method signature"><samp class="codeph nolang">Decimal getValue(String kpiName)</samp></td>

              <td class="entry" headers="d37037e89" data-title="Description">Returns the value of the KPI parameter for the score card. If the KPI doesn’t exist,
                or isn’t part of the score card, it throws an exception.<p class="p"><span class="keyword parmname">kpiName</span>:
                  String. The name of the KPI to return the value from.</p>
              </td>

              <td class="entry" headers="d37037e92" data-title="Version">60.0</td>

            </tr>

          </tbody>

        </table>

## Example Implementation

After the report is executed, extract the ScoreCard data from the RTRReportResult object.

// Extract the ScoreCard from the result
// - The component name must match its 'uimapping' name
// - The result must be casted to the correct type.
cgcloud.RTRReportResult.ScoreCard scoreCard = (cgcloud.RTRReportResult.ScoreCard) reportResult.getComponent('ScoreCard');
    
// Extract KPI data. We assume the specified KPIs are in the configured ScoreCard
Decimal kpiValue = scoreCard.getValue('ProPlanIncrVolume');

system.debug('Value: ' + kpiValue);