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
Response Sample
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" |