---
schema_version: "1"
id: 60d7bdc4edb0cc3fb1dce97b9425a886829180fdbcc92ccd6470159c9f70d22f
title: Examples
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/rtr_examples.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/rtr_examples.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 5d769a78fe936662926c6a709abbc4ff81ce152694cbb19f44173ba8db92e322
description: This section provides sample code snippets for different data sources.
---
# Examples

This section provides sample code snippets for different data sources.

<table class="featureTable sort_table" summary=""><tbody class="tbody"><tr><td class="entry">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>

- **[Data Source: Account and Promotion Measures](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/rtr_account_and_promotion_measures.htm)**  
    This section provides sample code snippets for different data sources.
- **[Data Source: Promotion Measures](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/rtr_promotion_measures.htm)**  
    An integration metadata report configuration using the data source PromotionMeasures requires dimensions.
- **[Data Source: Promotion Measures with BOM Components](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/rtr_promotion_measures_bom_components.htm)**  
    The PromotionMeasuresWithBOMComponents data source allows export of information related to promotion measures at the Bill of Material (BOM) component or product part level in RTR.
- **[Data Source: Promotion and Tactic Measures](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/rtr_promotion_and_tactic_measures.htm)**  
    An integration metadata report configuration using the data source PromotionAndTacticMeasures requires dimensions.
- **[Data Source: Promotion and Tactic Measures with BOM Components](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/rtr_promotion_and_tactic_measures_bom_components.htm)**  
    The PromotionAndTacticMeasuresWithBOMComponents data source allows export of information related to promotion and tactic measures at the Bill of Material (BOM) component or product part level in RTR.
- **[Data Source: DailyRealData/DailyIntData](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/rtr_daily_RealData.htm)**  
    This section provides sample code snippets for the integration metadata JSON with the data source. The following example shows the datasources configuration payload for DailyRealData/dailyIntData.
- **[Data Source: AccountMeasure](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/rtr_AccountMeasure.htm)**  
    This example provides details on the integration metadata JSON with the data source. This example provides details on the integration metadata JSON with the data source. The following example shows the datasources configuration payload for AccountMeasure.
- **[Data Source: PromotionTacticDailyMeasureReal](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/rtr_promotion_tactic_daily_measure_real.htm)**  
    This example provides details on the integration metadata JSON with the data source. This example provides details on the integration metadata JSON with the data source. The following example shows the datasources configuration payload for PromotionTacticDailyMeasureReal.
- **[Data Source: PromotionTacticWeeklyMeasureReal](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/rtr_promotion_tactic_weekly_measure_real.htm)**  
    This example provides details on the integration metadata JSON with the data source. This example provides details on the integration metadata JSON with the data source. The following example shows the datasources configuration payload for PromotionTacticWeeklyMeasureReal.
- **[Data Source: AccountProductMeasure](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/rtr_AccountProductMeasure.htm)**  
    This example provides details on the integration metadata JSON with the data source. The following example shows the datasources configuration payload for AccountProductMeasure.
- **[Data Source: ProductMeasure](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/rtr_product_measure.htm)**  
    This section provides sample code snippets for the integration metadata JSON with the data source. The following example shows the datasources configuration payload for ProductMeasure.
- **[Data Source: WeeklyMeasureReal](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/rtr_weekly_measure_real.htm)**  
    This section provides sample code snippets for the integration metadata JSON with the data source. The following example shows the datasources configuration payload for WeeklyMeasureReal.
- **[Data Source: WeeklyMeasureInt](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/rtr_weekly_measure_int.htm)**  
    This section provides sample code snippets for the integration metadata JSON with the data source. The following example shows the datasources configuration payload for WeeklyMeasureInt.