---
schema_version: "1"
id: 16d4c033a0956dfe88f70cd71f3e6fe5747067dd9aab67ab69cc2661d8805ec0
title: FlatListRowIterable Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/apex_class_CGCloud_RTRReportResult_FlatListRowIterable.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/apex_class_CGCloud_RTRReportResult_FlatListRowIterable.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9d7aa21d63de89861eb34dccd705ba660a996fcc61c73a5dd46a4a99a91b8bbc
description: Represents a Real Time Reporting (RTR) report UI Flatlist component set of rows. This class implements the Iterable interface that allows it to be used in batch processes. Returns true if a record can be retrieved.Returns the next record in the dataset.
---
# FlatListRowIterable Class

Represents a Real Time Reporting (RTR) report UI Flatlist component set of rows. This class implements the [Iterable](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexcode.meta/apexcode/apex_classes_iterable.htm "HTML (New Window)") interface that allows it to be used in batch processes.

## Namespace

[CGCloud](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/apex_namespace_CGCloud.htm "The CGCloud namespace provides classes that allow you to customise Real Time Reporting (RTR) data extraction from Apex.")

- **[FlatlistRowIterable Methods](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/apex_class_CGCloud_RTRReportResult_FlatListRowIterable.htm#apex_CGCloud_FlowListRowIterable_methods)**

## FlatlistRowIterable Methods

The following are methods for FlatlistRowIterable.

- **[hasNext()](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/apex_class_CGCloud_RTRReportResult_FlatListRowIterable.htm#apex_CGReporting_FlatlistRowIterable_hasNext)**  
    Returns true if a record can be retrieved.
- **[next()](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/apex_class_CGCloud_RTRReportResult_FlatListRowIterable.htm#apex_CGReporting_FlatListRowIterable_next)**  
    Returns the next record in the dataset.

### hasNext()

Returns true if a record can be retrieved.

#### Signature

public RTRReportResult.FlatlistRowIterable hasNext()

#### Return Value

Type:Boolean

### next()

Returns the next record in the dataset.

![Note](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/images/icon_note.png)

#### Note

If no more records are present in the dataset, this method returns an error.

#### Signature

public RTRReportResult.FlatlistRowIterable hasNext()

#### Return Value

Type:[FlatlistRow](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/apex_class_CGCloud_RTRReportResult_FlatList.htm#apex_class_CGReporting_RTRReportResult_FlatList "Represents a Real Time Reporting (RTR) report UI Flatlist component. This class extends the ReportComponent class.")