---
schema_version: "1"
id: 35b2dd83dfd7b92ab854e53efaba920036ef87dc0a012bf22faf47475ae62870
title: getProducts
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/getProducts.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/getProducts.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 935076ddcddd52cd6777d10e57ef2250e50acee97d830bdeb87cb1352898b96e
description: This method returns the list of tactic templates related to the input promotion template.
---
# getProducts

This method returns the list of tactic templates related to the input promotion template.

## Input Parameters

| Name | Description |
| --- | --- |
| level | The product level to be retrieved. |
| dateFrom | Start date of the promotion. |
| dateThru | End date of the promotion. |
| promotionTemplate | ID of the promotion template. |
| accountOrAccountSet | Account or account set of the promotion. |

## Input Sample

{
    "class": "NewPromotionWizardCallable",
    "method": "getProducts",
    "params": {  
        "level": "Brand",
        "dateFrom": "{! promoDateFrom }",
        "dateThru": "{! promoDateThru }",
        "promotionTemplate": "{! promoTemplate.Id }",
        "accountOrAccountSet": "{! if(promoTemplate.AnchorType, if(promoTemplate.AnchorType == 'CustomerSet', promoAnchorAccountSet.Id, promoAnchorAccount.Id), '') }"
    },
    "cache": true
}

## Response Sample

\[
    {
        "Id": "a2L2X00000Bw3MfUAJ",
        "Name": "Beverages Adv. Material"
    },
    {
        "Id": "a2L2X00000Bw3MqUAJ",
        "Name": "Big Pizza"
    },
    {
        "Id": "a2L2X00000Bw3MoUAJ",
        "Name": "Cakes"
    },
    {
        "Id": "a2L2X00000Bw3MeUAJ",
        "Name": "Caspro Adv. Material"
    }
\]

## Response Properties

This method returns a list of items with the following properties:

| Name | Description |
| --- | --- |
| Id | Product SFDC ID |
| Name | Product description value. |