---
schema_version: "1"
id: 9d89f95d7b8360c2055d3090363cbab95f58373c9b4af5cff85a1b9ef51d6a31
title: CGCloud Namespace
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/apex_namespace_CGCloud.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/apex_namespace_CGCloud.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 78ef0e045addee957af536fe405d2724735e36135417bc74fdd2737f49b3956e
description: The CGCloud namespace provides classes that allow you to customise Real Time Reporting (RTR) data extraction from Apex.
---
# CGCloud Namespace

The CGCloud namespace provides classes that allow you to customise Real Time Reporting (RTR) data extraction from Apex.

<table class="editionTable" border="0" summary="Salesforce editions needed for the documented functionality" width="100%"><tbody class="tbody"><tr><td class="subHead">Available in: Lightning Experience in <strong class="ph b">Enterprise</strong> and <strong class="ph b">Unlimited</strong> Editions that have Consumer Goods Cloud Trade Promotion Management enabled.</td></tr></tbody></table>

  

The following are the classes in the CGCloud namespace.

- **[RTRReportResult Class](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/apex_class_CGCloud_RTRReportResult.htm#apex_class_CGReporting_RTRReportResult)**  
    Use this class to execute the Trade Promotion Management Real Time Reporting (RTR) report and access the report data.
- **[ReportComponent Class](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/apex_class_CGCloud_RTRReportResult_ReportComponent.htm#apex_class_CGReporting_RTRReportResult_ReportComponent)**  
    Represents a Real Time Reporting (RTR) report UI component. This is an abstract class and can’t be instantiated.
- **[FlatList Class](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.
- **[FlatListRowIterable Class](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/apex_class_CGCloud_RTRReportResult_FlatListRowIterable.htm#apex_class_CGReporting_RTRReportResult_FlatListRowIterable)**  
    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.
- **[FlatListRow Class](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/apex_class_CGCloud_RTRReportResult_FlatListRow.htm#apex_class_CGReporting_RTRReportResult_FlatListRow)**  
    Represents a Real Time Reporting (RTR) report UI Flatlist component single rows.
- **[ScoreCard Class](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/apex_class_CGCloud_RTRReportResult_ScoreCard.htm#apex_class_CGReporting_RTRReportResult_ScoreCard)**  
    Represents a Real Time Reporting (RTR) report scorecard component. This class extends the ReportComponent class.