Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
getProducts
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
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:
| Name | Description |
|---|---|
| Id | Product SFDC ID |
| Name | Product description value. |