---
schema_version: "1"
id: d94ce0b265c4c9407e1c27ddfc9b551d5da56e54bfa6683609dd1a95d667b0aa
title: getPromotionTemplates
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/getPromotionTemplates.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/getPromotionTemplates.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2a759a481644ec10165d1a42ce60dceb3d163caa0af375e66a7ce0a053e6c1c2
description: This method returns the list of promotion templates along with additional information. The method will search for promotion templates where the "Display_In_MetadataWizard__c" field is set to true unless the "all" parameter is set to true.
---
# getPromotionTemplates

This method returns the list of promotion templates along with additional information. The method will search for promotion templates where the "Display\_In\_MetadataWizard\_\_c" field is set to true unless the "all" parameter is set to true.

## Input Parameters

Wizards are generated from a metadata JSON structure defining the list of components that will be part of a wizard along with some additional properties to define the available actions and the general layout.

| Name | Description |
| --- | --- |
| all | Boolean. If true, it will display all valid promotion templates. If false or not set, it will return only the templates with the flag "Display\_In\_MetadataWizard\_\_c" as true. |

## Input Sample

{
    "class": "NewPromotionWizardCallable",
    "method": "getPromotionTemplates",
    "cache": true
}

## Response Sample

\[
    {
        "NumberOfTacticKPIs": 0,
        "NumberOfPromotionKPIs": 0,
        "HasTacticTemplates": true,
        "ProductDefinitionLevel": "Tactic",
        "AnchorType": "Customer",
        "Name": "\*BanTest\_Tacticlevel",
        "Id": "a2a2X000004L7wPQAS"
    },
    {
        "NumberOfTacticKPIs": 0,
        "NumberOfPromotionKPIs": 1,
        "HasTacticTemplates": true,
        "ProductDefinitionLevel": "Tactic",
        "AnchorType": "Customer",
        "Name": "Customer Promotion",
        "Id": "a2a2X000004L7xPQAS"
    }
\]

## Response Properties

This method will return a list of items with the following properties:

| Name | Description |
| --- | --- |
| AnchorType | Anchor Type for the Promotion. Possible values are "Customer", "CustomerSet" and null |
| HasTacticTemplates | Boolean value. True if the Promotion Template can have tactics because it has related Tactic Templates. |
| Id | SFDC Id of the Promotion template |
| Name | Description value of the promotion template. |
| NumberOfPromotionKPIs | Number of Editable and Editable Calculated Promotion Level KPI's the template has. |
| NumberOfTacticKPIs | Number of Editable and Editable Calculated Tactic Level KPI's the template has. |
| ProductDefinitionLevel | Product definition level for the template. Valid values are "Promotion" and "Tactic" |