---
schema_version: "1"
id: 67920077f9f425abfdee3c146e84269f779daf3b98ed53e95d7b5d19cb1a2b0e
title: RTRReportResult.FlatlistRow
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/FlatlistRow_class.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/FlatlistRow_class.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 40a34182c7569a41dd3d54e4529ffc71f8cf8295b25d0503f4902f7aa42f6748
description: This class represents a single row in an RTR Report UI Flatlist component.
---
# RTRReportResult.FlatlistRow

This class represents a single row in an RTR Report UI Flatlist component. 

The supported modifiers are global and virtual.

## Namespace

cgcloud

## Supported Methods

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



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

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

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

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d34024e77" data-title="Method signature"><samp class="codeph nolang">Object getColumnValue(String columnName)</samp></td>

              <td class="entry" headers="d34024e80" data-title="Description">Extracts the column value of the given column name for the current row.
                <p class="p"><span class="keyword parmname">columnName</span>: String. The name of the column to retrieve the value. </p>

                <p class="p">The dimension attribute column values are returned in this format: <samp class="codeph nolang">&lt;Dimension Name.Report Field&gt;</samp>. For example, <samp class="codeph nolang">productdimension.id</samp>, <samp class="codeph nolang">promotiondimension.phase</samp>.</p>

                <p class="p">The KPI column values are returned with the KPI names. For example, <samp class="codeph nolang">ProPlanIncrVolume</samp>.</p>
              </td>

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

            </tr>

            <tr>
              <td class="entry" headers="d34024e77" data-title="Method signature"><samp class="codeph nolang">String getRowType()</samp></td>

              <td class="entry" headers="d34024e80" data-title="Description">Returns the Type of the Flatlist row.</td>

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

            </tr>

          </tbody>

        </table>

## Example Implementation

// Extract the Flatlist from the result
// - The component name must match its 'uimapping' name
// - The result must be casted to the correct type.
cgcloud.RTRReportResult.Flatlist flatlist = (cgcloud.RTRReportResult.Flatlist) reportResult.getComponent('FlatList');
    
// Retrieve the rows Iterable object
// All rows can be retrieved with the parameter-less "getRows"
cgcloud.RTRReportResult.FlatlistRowIterable iterator = flatlist.getRows('Promo-Product');

// Iterate over all the rows
while (iterator.hasNext()) {
    cgcloud.RTRReportResult.FlatlistRow row = iterator.next();
    
    // Extract column data. We assume the specified columns are in the report
    
    // Dimension information can be extracted with <dimension name>.<field>
    String promotionId = String.valueOf(row.getColumnValue('promotiondimension.id'));
    // KPI Value information can be extracted by querying the KPI Name
    Decimal kpiValue = (Decimal) row.getColumnValue('ProPlanIncrVolume');
    
    system.debug('Values: ' + promotionId + ' ' + kpiValue);
}