getProducts

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

Input Parameters 

NameDescription
levelThe product level to be retrieved.
dateFromStart date of the promotion.
dateThruEnd date of the promotion.
promotionTemplateID of the promotion template.
accountOrAccountSetAccount or account set of the promotion.

Input Sample 

1{
2    "class": "NewPromotionWizardCallable",
3    "method": "getProducts",
4    "params": {  
5        "level": "Brand",
6        "dateFrom": "{! promoDateFrom }",
7        "dateThru": "{! promoDateThru }",
8        "promotionTemplate": "{! promoTemplate.Id }",
9        "accountOrAccountSet": "{! if(promoTemplate.AnchorType, if(promoTemplate.AnchorType == 'CustomerSet', promoAnchorAccountSet.Id, promoAnchorAccount.Id), '') }"
10    },
11    "cache": true
12}

Response Sample 

1[
2    {
3        "Id": "a2L2X00000Bw3MfUAJ",
4        "Name": "Beverages Adv. Material"
5    },
6    {
7        "Id": "a2L2X00000Bw3MqUAJ",
8        "Name": "Big Pizza"
9    },
10    {
11        "Id": "a2L2X00000Bw3MoUAJ",
12        "Name": "Cakes"
13    },
14    {
15        "Id": "a2L2X00000Bw3MeUAJ",
16        "Name": "Caspro Adv. Material"
17    }
18]

Response Properties 

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

NameDescription
IdProduct SFDC ID
NameProduct description value.